dekshell 0.2.15__tar.gz → 0.2.16__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.
- {dekshell-0.2.15 → dekshell-0.2.16}/PKG-INFO +1 -1
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/__init__.py +2 -1
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/contexts/methods.py +3 -2
- {dekshell-0.2.15 → dekshell-0.2.16}/pyproject.toml +1 -1
- {dekshell-0.2.15 → dekshell-0.2.16}/README.md +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/__init__.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/click/__entry__.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/click/__init__.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/contexts/__init__.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/contexts/properties.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/__init__.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/base/__init__.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/base/core.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/commands.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/comment.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/define.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/echo.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/empty.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/env.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/exec.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/for_.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/function.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/if_.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/input.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/invoke.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/pip_.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/redirect.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/shell.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/var.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/markers/while_.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/plugin/__init__.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/core/redirect.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/utils/__init__.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/utils/beep.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/utils/cmd.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/utils/pkg.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/utils/serializer.py +0 -0
- {dekshell-0.2.15 → dekshell-0.2.16}/dekshell/utils/shell.py +0 -0
|
@@ -7,7 +7,7 @@ from collections import OrderedDict
|
|
|
7
7
|
from dektools.time import get_tz
|
|
8
8
|
from dektools.format import format_duration
|
|
9
9
|
from dektools.shell import shell_command, shell_wrapper
|
|
10
|
-
from dektools.file import normal_path
|
|
10
|
+
from dektools.file import normal_path, seek_py_module_path
|
|
11
11
|
from dektools.escape import str_escape_wrap
|
|
12
12
|
from .contexts import get_all_context
|
|
13
13
|
from .markers import generate_markers, CommentConfigMarker
|
|
@@ -40,6 +40,7 @@ def shell_command_file(filepath, **kwargs):
|
|
|
40
40
|
kwargs['context'] = (kwargs.get('context') or {}) | dict(
|
|
41
41
|
fp=filepath,
|
|
42
42
|
fpp=os.path.dirname(filepath),
|
|
43
|
+
fpy=seek_py_module_path(filepath),
|
|
43
44
|
)
|
|
44
45
|
return shell_command_batch(f.read(), **kwargs)
|
|
45
46
|
|
|
@@ -10,7 +10,7 @@ from pathlib import Path
|
|
|
10
10
|
from io import BytesIO, StringIO
|
|
11
11
|
from dektools.file import sure_dir, write_file, read_text, remove_path, sure_parent_dir, normal_path, \
|
|
12
12
|
format_path_desc, read_file, split_ext, path_ext, clear_dir, copy_recurse_ignore, path_is_empty, \
|
|
13
|
-
read_lines, \
|
|
13
|
+
read_lines, seek_py_module_path, \
|
|
14
14
|
split_file, combine_split_files, remove_split_files, meta_split_file, tree, iglob, \
|
|
15
15
|
where, where_list, which, which_list
|
|
16
16
|
from dektools.hash import hash_file
|
|
@@ -171,7 +171,8 @@ path_common_methods = {
|
|
|
171
171
|
'where_list': where_list,
|
|
172
172
|
'pybin': lambda x, p=None: search_bin_by_path_tree(p or os.getcwd(), x, False),
|
|
173
173
|
'pym': _pym,
|
|
174
|
-
'pymd': _pymd
|
|
174
|
+
'pymd': _pymd,
|
|
175
|
+
'pyms': seek_py_module_path,
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
default_methods = {
|
|
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
|
|
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
|
|
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
|
|
File without changes
|