Compare commits
3
Commits
17f007e8c6
...
fcee240869
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcee240869 | ||
|
|
fb2479c65d | ||
|
|
ae0f204828 |
@@ -11,7 +11,7 @@ if __name__ == '__main__' :
|
|||||||
|
|
||||||
configFile = open("config.json",'r')
|
configFile = open("config.json",'r')
|
||||||
|
|
||||||
config = json.loads(configFile.readall())
|
config = json.loads(configFile.read())
|
||||||
|
|
||||||
configFile.close()
|
configFile.close()
|
||||||
|
|
||||||
@@ -33,10 +33,11 @@ if __name__ == '__main__' :
|
|||||||
presetContent = ''
|
presetContent = ''
|
||||||
presetFile = Path().cwd().joinpath(f"{config['presetPath']}/{args.file_preset}.py")
|
presetFile = Path().cwd().joinpath(f"{config['presetPath']}/{args.file_preset}.py")
|
||||||
|
|
||||||
if not presetFile.exists() and args.file_preset == '' :
|
if args.file_preset != '' :
|
||||||
raise Exception(f"Preset {args.file_preset} does not exist!")
|
if not presetFile.exists() :
|
||||||
else :
|
raise Exception(f"Preset {args.file_preset} does not exist!")
|
||||||
presetContent = presetFile.read_text()
|
else :
|
||||||
|
presetContent = presetFile.read_text()
|
||||||
|
|
||||||
if not args.path :
|
if not args.path :
|
||||||
path = Path().cwd()
|
path = Path().cwd()
|
||||||
|
|||||||
Reference in new issue
Block a user