torizon-templates-utils 0.0.2__py3-none-any.whl → 0.0.4__py3-none-any.whl
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.
- torizon_templates_utils/tasks.py +7 -1
- {torizon_templates_utils-0.0.2.dist-info → torizon_templates_utils-0.0.4.dist-info}/METADATA +1 -1
- {torizon_templates_utils-0.0.2.dist-info → torizon_templates_utils-0.0.4.dist-info}/RECORD +6 -6
- {torizon_templates_utils-0.0.2.dist-info → torizon_templates_utils-0.0.4.dist-info}/LICENSE +0 -0
- {torizon_templates_utils-0.0.2.dist-info → torizon_templates_utils-0.0.4.dist-info}/WHEEL +0 -0
- {torizon_templates_utils-0.0.2.dist-info → torizon_templates_utils-0.0.4.dist-info}/top_level.txt +0 -0
torizon_templates_utils/tasks.py
CHANGED
|
@@ -517,6 +517,8 @@ class TaskRunner:
|
|
|
517
517
|
ret: List[str] = []
|
|
518
518
|
|
|
519
519
|
for value in env:
|
|
520
|
+
if "workspaceFolderBasename" in value:
|
|
521
|
+
value = self.__replace_env_var("workspaceFolderBasename", value)
|
|
520
522
|
if "workspaceFolder" in value:
|
|
521
523
|
value = self.__replace_env_var("workspaceFolder", value)
|
|
522
524
|
ret.append(value)
|
|
@@ -602,7 +604,7 @@ class TaskRunner:
|
|
|
602
604
|
|
|
603
605
|
|
|
604
606
|
def __contains_special_chars(self, str: str) -> bool:
|
|
605
|
-
_pattern = r"[^a-zA-Z0-9\.\-_
|
|
607
|
+
_pattern = r"[^a-zA-Z0-9\.\-_|>\/=+&_]"
|
|
606
608
|
return re.search(_pattern, str) is not None
|
|
607
609
|
|
|
608
610
|
|
|
@@ -893,6 +895,10 @@ class TaskRunner:
|
|
|
893
895
|
|
|
894
896
|
# we need to change the cwd if it's set
|
|
895
897
|
if _cwd is not None:
|
|
898
|
+
_cwd = self.__check_workspace_folder([_cwd])[0]
|
|
899
|
+
_cwd = self.__check_config([_cwd])[0]
|
|
900
|
+
_cwd = self.__check_vscode_env([_cwd])[0]
|
|
901
|
+
|
|
896
902
|
os.chdir(_cwd)
|
|
897
903
|
|
|
898
904
|
# execute the task
|
{torizon_templates_utils-0.0.2.dist-info → torizon_templates_utils-0.0.4.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: torizon_templates_utils
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Package with utilities for Torizon Templates scripts
|
|
5
5
|
Author-email: Matheus Castello <matheus.castello@toradex.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/torizon/vscode-torizon-templates
|
|
@@ -5,9 +5,9 @@ torizon_templates_utils/colors.py,sha256=Y1FZ0HtKvXfLGYTDclsXubtZCQ-epuch5Dgk1DJ
|
|
|
5
5
|
torizon_templates_utils/debug.py,sha256=OfdKSdN1kypuJnV_WcPa9bvonjyDvXvA3QTmc1iKyjw,556
|
|
6
6
|
torizon_templates_utils/errors.py,sha256=rvQjWPkwmOQE56vFywq1yQiiRcl-AL7LRVlpyoYDXvc,1214
|
|
7
7
|
torizon_templates_utils/network.py,sha256=K2-eEi4224yuvw5-zZp-rG2KxSH_8vxPtbzs11olb2g,643
|
|
8
|
-
torizon_templates_utils/tasks.py,sha256=
|
|
9
|
-
torizon_templates_utils-0.0.
|
|
10
|
-
torizon_templates_utils-0.0.
|
|
11
|
-
torizon_templates_utils-0.0.
|
|
12
|
-
torizon_templates_utils-0.0.
|
|
13
|
-
torizon_templates_utils-0.0.
|
|
8
|
+
torizon_templates_utils/tasks.py,sha256=rWakrJSUYIW5iKv_gslKDwoE2DxZYAPeg8iQ29VQxRY,30981
|
|
9
|
+
torizon_templates_utils-0.0.4.dist-info/LICENSE,sha256=9sElQO1hY3ElhihFD_PlS5hXMIuSelsJZpIfjNpxBlQ,1099
|
|
10
|
+
torizon_templates_utils-0.0.4.dist-info/METADATA,sha256=8Bc5-FkhbEE22JYnJwYmHfvgokAJeB9QrrSj7oZe7S8,968
|
|
11
|
+
torizon_templates_utils-0.0.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
12
|
+
torizon_templates_utils-0.0.4.dist-info/top_level.txt,sha256=qlOkS1ASF5C-kSfpbiWbVHJFgmQ0RN6iunmLArNt6zc,24
|
|
13
|
+
torizon_templates_utils-0.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{torizon_templates_utils-0.0.2.dist-info → torizon_templates_utils-0.0.4.dist-info}/top_level.txt
RENAMED
|
File without changes
|