oh-my-batch 0.4.9__tar.gz → 0.5.0__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.4.9 → oh_my_batch-0.5.0}/PKG-INFO +1 -1
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/batch.py +6 -2
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/pyproject.toml +1 -1
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/LICENSE +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/README.md +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/__init__.py +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/__main__.py +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/assets/__init__.py +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/assets/functions.sh +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/cli.py +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/combo.py +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/job.py +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/misc.py +0 -0
- {oh_my_batch-0.4.9 → oh_my_batch-0.5.0}/oh_my_batch/util.py +0 -0
@@ -13,13 +13,17 @@ class BatchMaker:
|
|
13
13
|
self._script_bottom = []
|
14
14
|
self._command = []
|
15
15
|
|
16
|
-
def add_work_dirs(self, *dir: str):
|
16
|
+
def add_work_dirs(self, *dir: str, abs=False):
|
17
17
|
"""
|
18
18
|
Add working directories
|
19
19
|
|
20
20
|
:param dir: Directories to work on, can be glob patterns
|
21
|
+
:param abs: Whether to convert to absolute path
|
21
22
|
"""
|
22
|
-
|
23
|
+
paths = expand_globs(dir)
|
24
|
+
if abs:
|
25
|
+
paths = [os.path.abspath(p) for p in paths]
|
26
|
+
self._work_dirs.extend(paths)
|
23
27
|
return self
|
24
28
|
|
25
29
|
def add_header_files(self, *file: str, encoding='utf-8'):
|
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
|