Commit a21c93e0 authored by Michael Rudolf's avatar Michael Rudolf
Browse files

Updated batch script

parent d73fdedd
......@@ -36,6 +36,13 @@ def main():
# Do the processing
path_cfg = os.path.join(folder_path, projectname + '.cfg')
cfg = get_config(path_cfg, projectname, folder_path, results_folder)
if not os.path.exists(cfg['paths']['path_cfg']):
cfg['paths']['path_cfg'] = path_cfg
if not os.path.exists(cfg['paths']['path_in']):
cfg['paths']['path_in'] = folder_path
if not os.path.exists(cfg['paths']['path_out']):
cfg['paths']['path_out'] = results_folder
# Move files around for better overview
......@@ -96,7 +103,7 @@ def create_default_config(path_cfg, projectname, path_in, path_out):
def get_folder_list(
path=r'C:\Users\Michael Rudolf\Nextcloud\SpecialIssue\Materials\Data\ConvertedRST'):
folder_list = [
os.path.join(path, fol)
for fol in os.listdir(path)
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