added save path overriding

pull/87/head
Matt 2022-04-11 22:44:21 -07:00
rodzic fb8632e72a
commit c2be2c9ed0
2 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -635,6 +635,9 @@ def runAsHeadless():
bpy.context.scene.my_tool.solanaDescription = pairs[17][1]
bpy.context.scene.my_tool.enableCustomFields = bool(pairs[18][1])
bpy.context.scene.my_tool.customfieldsFile = pairs[19][1]
if args.save_path:
bpy.context.scene.my_tool.save_path = save_path
#don't mind me, just copy-pasting code around...
if args.operation == 'create-dna':

Wyświetl plik

@ -36,4 +36,11 @@ def getPythonArgs():
help="Choose which operation you want to perform"
)
parser.add_argument("-s", "--save-path",
dest="save_path",
metavar='FOLDER',
required=False,
help="Overwrite the save path in the config file"
)
return (parser.parse_args(argv), parser)