Skip to content

Commit ebdaa83

Browse files
Merge pull request #70 from seibert-media/print-temp-dir
Parallel execution: Print temp dir
2 parents f3700ab + 6cb36d7 commit ebdaa83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

automatix/parallel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class Autos:
3232
status_file: str
3333
time_id: int
3434
count: int
35+
tempdir: str
3536

3637
max_parallel: int = 2
3738
waiting: set = field(default_factory=set)
@@ -85,6 +86,7 @@ def print_status(autos: Autos):
8586

8687

8788
def print_status_verbose(autos: Autos):
89+
print(f'Working directory: {autos.tempdir}')
8890
print(f'------------------ Screens (max. {autos.max_parallel} running) ------------------')
8991
print_status(autos=autos)
9092
print('--------------------------------------------------------------')
@@ -125,7 +127,7 @@ def check_for_status_change(autos: Autos, status_file: str):
125127
def run_manage_loop(tempdir: str, time_id: int):
126128
status_file = f'{tempdir}/{time_id}_overview'
127129
auto_files = get_files(tempdir)
128-
autos = Autos(status_file=status_file, time_id=time_id, count=len(auto_files), waiting=auto_files)
130+
autos = Autos(status_file=status_file, time_id=time_id, count=len(auto_files), waiting=auto_files, tempdir=tempdir)
129131
logfile_dir = f'{CONFIG.get("logfile_dir")}/{time_id}'
130132

131133
LOG.info(f'Found {autos.count} files to process. Screens name are like "{time_id}_autoX"')

0 commit comments

Comments
 (0)