Commit b3f205e3 authored by Leo Iannacone's avatar Leo Iannacone

use 4 spaces for identation

parent 1d2a7dcf
...@@ -10,8 +10,8 @@ global_config_file = os.path.join(base_path, '../lib/config.coffee') ...@@ -10,8 +10,8 @@ global_config_file = os.path.join(base_path, '../lib/config.coffee')
user_config_file = os.path.join(base_path, '../user.config.coffee') user_config_file = os.path.join(base_path, '../user.config.coffee')
if os.path.isfile(user_config_file): if os.path.isfile(user_config_file):
print ("A config user file already exists. Skipping creation.") print ("A config user file already exists. Skipping creation.")
exit() exit()
export_header = """ export_header = """
### ###
...@@ -22,15 +22,15 @@ debomatic-webui user configuration ...@@ -22,15 +22,15 @@ debomatic-webui user configuration
export_config = [export_header] export_config = [export_header]
with open(global_config_file) as fd: with open(global_config_file) as fd:
start = False start = False
for line in fd: for line in fd:
if line.find('#start config-auto-export') >= 0: if line.find('#start config-auto-export') >= 0:
start = True start = True
continue continue
elif line.find('#end config-auto-export') >= 0: elif line.find('#end config-auto-export') >= 0:
break break
if start: if start:
export_config.append(line) export_config.append(line)
export_config.append('# DO NOT EDIT THIS LINE:\n') export_config.append('# DO NOT EDIT THIS LINE:\n')
export_config.append('module.exports = config\n') export_config.append('module.exports = config\n')
...@@ -38,4 +38,4 @@ export_config.append('module.exports = config\n') ...@@ -38,4 +38,4 @@ export_config.append('module.exports = config\n')
print ("Creating user configuration ...") print ("Creating user configuration ...")
with open(user_config_file, 'w') as fd: with open(user_config_file, 'w') as fd:
fd.write(''.join(export_config)) fd.write(''.join(export_config))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment