add dockerfile
move cli functions in module add configure command
This commit is contained in:
parent
d94855e3c5
commit
58f9109bd2
6 changed files with 192 additions and 131 deletions
|
@ -23,7 +23,7 @@ def read():
|
|||
|
||||
def save(conf):
|
||||
with open(os.path.join(APP_PATH, 'config.json'), 'w') as f:
|
||||
f.write(json.dumps(conf, sort_keys=True, indent=4, separators=(',', ': ')))
|
||||
f.write(json.dumps(conf, sort_keys=True, indent=4, separators=(',', ': ')).strip() + '\n')
|
||||
|
||||
APP_PATH = os.path.abspath(os.path.dirname(__file__) + "/../..")
|
||||
USER_HOME = os.path.abspath(os.path.expanduser("~"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue