oh-my-batch 0.6.0__tar.gz → 0.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/PKG-INFO +1 -1
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/batch.py +3 -3
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/pyproject.toml +1 -1
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/LICENSE +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/README.md +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/__init__.py +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/__main__.py +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/assets/__init__.py +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/assets/functions.sh +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/cli.py +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/combo.py +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/job.py +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/misc.py +0 -0
- {oh_my_batch-0.6.0 → oh_my_batch-0.6.1}/oh_my_batch/util.py +0 -0
@@ -30,7 +30,7 @@ class BatchMaker:
|
|
30
30
|
"""
|
31
31
|
Filter working directories with a Python expression
|
32
32
|
|
33
|
-
:param expr: Python expression, the variable `{workdir} or {w}` is the directory path,
|
33
|
+
:param expr: Python expression, the variable `{workdir}, {work_dir} or {w}` is the directory path,
|
34
34
|
`{index} or {i}` is the index of the directory
|
35
35
|
|
36
36
|
Example: if expr is 'os.path.exits("{workdir}/input.json")',
|
@@ -38,7 +38,7 @@ class BatchMaker:
|
|
38
38
|
"""
|
39
39
|
filtered = []
|
40
40
|
for i, workdir in enumerate(self._work_dirs):
|
41
|
-
expr_eval = expr.format(workdir=workdir, w=workdir, index=i, i=i)
|
41
|
+
expr_eval = expr.format(workdir=workdir, work_dir=workdir, w=workdir, index=i, i=i)
|
42
42
|
if eval(expr_eval):
|
43
43
|
filtered.append(workdir)
|
44
44
|
self._work_dirs = filtered
|
@@ -149,4 +149,4 @@ def load_files(*file, encoding='utf-8', raise_invalid=False):
|
|
149
149
|
for file in expand_globs(file, raise_invalid=raise_invalid):
|
150
150
|
with open(file, 'r', encoding=encoding) as f:
|
151
151
|
result.append(f.read())
|
152
|
-
return result
|
152
|
+
return result
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|