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