ScriptCollection 3.5.117__py3-none-any.whl → 3.5.118__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.
- ScriptCollection/ScriptCollectionCore.py +4 -5
- {scriptcollection-3.5.117.dist-info → scriptcollection-3.5.118.dist-info}/METADATA +1 -1
- {scriptcollection-3.5.117.dist-info → scriptcollection-3.5.118.dist-info}/RECORD +6 -6
- {scriptcollection-3.5.117.dist-info → scriptcollection-3.5.118.dist-info}/WHEEL +0 -0
- {scriptcollection-3.5.117.dist-info → scriptcollection-3.5.118.dist-info}/entry_points.txt +0 -0
- {scriptcollection-3.5.117.dist-info → scriptcollection-3.5.118.dist-info}/top_level.txt +0 -0
@@ -33,7 +33,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
|
|
33
33
|
from .ProgramRunnerPopen import ProgramRunnerPopen
|
34
34
|
from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
|
35
35
|
|
36
|
-
version = "3.5.
|
36
|
+
version = "3.5.118"
|
37
37
|
__version__ = version
|
38
38
|
|
39
39
|
|
@@ -692,13 +692,12 @@ class ScriptCollectionCore:
|
|
692
692
|
@GeneralUtilities.check_arguments
|
693
693
|
def list_content(self, path: str, include_files: bool, include_folder: bool, printonlynamewithoutpath: bool) -> list[str]:
|
694
694
|
"""This function works platform-independent also for non-local-executions if the ScriptCollection commandline-commands are available as global command on the target-system."""
|
695
|
+
result: list[str] = []
|
695
696
|
if self.program_runner.will_be_executed_locally():
|
696
|
-
result = []
|
697
697
|
if include_files:
|
698
698
|
result = result + GeneralUtilities.get_direct_files_of_folder(path)
|
699
699
|
if include_folder:
|
700
700
|
result = result + GeneralUtilities.get_direct_folders_of_folder(path)
|
701
|
-
return result
|
702
701
|
else:
|
703
702
|
arguments = ["--path", path]
|
704
703
|
if not include_files:
|
@@ -709,13 +708,13 @@ class ScriptCollectionCore:
|
|
709
708
|
arguments = arguments+["--printonlynamewithoutpath"]
|
710
709
|
exit_code, stdout, stderr, _ = self.run_program_argsasarray("sclistfoldercontent", arguments)
|
711
710
|
if exit_code == 0:
|
712
|
-
result: list[str] = []
|
713
711
|
for line in stdout.split("\n"):
|
714
712
|
normalized_line = line.replace("\r", "")
|
715
713
|
result.append(normalized_line)
|
716
|
-
return result
|
717
714
|
else:
|
718
715
|
raise ValueError(f"Fatal error occurrs while checking whether file '{path}' exists. StdErr: '{stderr}'")
|
716
|
+
result = [item for item in result if GeneralUtilities.string_has_nonwhitespace_content(item)]
|
717
|
+
return result
|
719
718
|
|
720
719
|
@GeneralUtilities.check_arguments
|
721
720
|
def is_file(self, path: str) -> bool:
|
@@ -6,11 +6,11 @@ ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4b
|
|
6
6
|
ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
|
7
7
|
ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
|
8
8
|
ScriptCollection/SCLog.py,sha256=5qjOBYiliyHV57GY8Y5dgUek512EVI8AzBF288R4fn4,2377
|
9
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
9
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=dzrgJteantFqcasor86q7GnhWyfuXk9QX6oWrFCpegg,131693
|
10
10
|
ScriptCollection/TasksForCommonProjectStructure.py,sha256=OfCJsg-FLdde6Duhy4FjBcfwLr-9iLhQAimRa1ZgRyE,234045
|
11
11
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
|
-
scriptcollection-3.5.
|
13
|
-
scriptcollection-3.5.
|
14
|
-
scriptcollection-3.5.
|
15
|
-
scriptcollection-3.5.
|
16
|
-
scriptcollection-3.5.
|
12
|
+
scriptcollection-3.5.118.dist-info/METADATA,sha256=S2GhphsHV1AG2Skb0k11jlesHhedCLWHWUldstjE3Io,7694
|
13
|
+
scriptcollection-3.5.118.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
14
|
+
scriptcollection-3.5.118.dist-info/entry_points.txt,sha256=3qMbfZEMhc_VTJj-bcLwB8AWcn9iXSB3l0AWpuu52Bs,3689
|
15
|
+
scriptcollection-3.5.118.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
16
|
+
scriptcollection-3.5.118.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|