diff options
| author | 2015-07-08 07:35:02 -0300 | |
|---|---|---|
| committer | 2015-07-08 07:35:02 -0300 | |
| commit | b0b24795b24ee6809397fbbadf42f31f310a219f (patch) | |
| tree | 46d05bb47460b4ec679211717c4ab07414b80d9c /scripts/generate_conf.py | |
| parent | 5ec02211214350ee558fd9f6bb052264fd24f75e (diff) | |
Imported Upstream version 7.6.0upstream/7.6.0
Diffstat (limited to 'scripts/generate_conf.py')
| -rwxr-xr-x | scripts/generate_conf.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/generate_conf.py b/scripts/generate_conf.py new file mode 100755 index 0000000..37a3a94 --- /dev/null +++ b/scripts/generate_conf.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +# Generate a conf.py file from the template, using default settings. + +import nikola.plugins.command.init + +try: + print(nikola.plugins.command.init.CommandInit.create_configuration_to_string()) +except: + print(nikola.plugins.command.init.CommandInit.create_configuration_to_string().encode('utf-8')) |
