ScriptCollection 3.5.76__py3-none-any.whl → 3.5.78__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.
@@ -279,7 +279,7 @@ class GeneralUtilities:
279
279
  if string is None:
280
280
  return False
281
281
  else:
282
- return len(string) > 0
282
+ return len(string.strip()) > 0
283
283
 
284
284
  @staticmethod
285
285
  @check_arguments
@@ -32,7 +32,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
32
32
  from .ProgramRunnerPopen import ProgramRunnerPopen
33
33
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
34
34
 
35
- version = "3.5.76"
35
+ version = "3.5.78"
36
36
  __version__ = version
37
37
 
38
38
 
@@ -1390,10 +1390,12 @@ class ScriptCollectionCore:
1390
1390
  try:
1391
1391
  while not q_stdout.empty():
1392
1392
  out_line:str=q_stdout.get_nowait()
1393
- stdout_result.append(out_line)
1394
- reading_stdout_last_time_resulted_in_exception = False
1395
- if print_live_output:
1396
- print(out_line, end='\n', file=sys.stdout, flush=False)
1393
+ out_line=out_line.replace("\r","").replace("\n","")
1394
+ if GeneralUtilities.string_has_content(out_line):
1395
+ stdout_result.append(out_line)
1396
+ reading_stdout_last_time_resulted_in_exception = False
1397
+ if print_live_output:
1398
+ print(out_line, end='\n', file=sys.stdout, flush=False)
1397
1399
  if print_live_output:
1398
1400
  sys.stdout.flush()
1399
1401
  except Empty:
@@ -1402,10 +1404,12 @@ class ScriptCollectionCore:
1402
1404
  try:
1403
1405
  while not q_stderr.empty():
1404
1406
  err_line:str=q_stderr.get_nowait()
1405
- stderr_result.append(err_line)
1406
- reading_stderr_last_time_resulted_in_exception = False
1407
- if print_live_output:
1408
- print(err_line, end='\n', file=sys.stdout if print_errors_as_information else sys.stderr, flush=False)
1407
+ err_line=err_line.replace("\r","").replace("\n","")
1408
+ if GeneralUtilities.string_has_content(err_line):
1409
+ stderr_result.append(err_line)
1410
+ reading_stderr_last_time_resulted_in_exception = False
1411
+ if print_live_output:
1412
+ print(err_line, end='\n', file=sys.stdout if print_errors_as_information else sys.stderr, flush=False)
1409
1413
  if print_live_output:
1410
1414
  if print_errors_as_information:
1411
1415
  sys.stdout.flush()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ScriptCollection
3
- Version: 3.5.76
3
+ Version: 3.5.78
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Home-page: https://github.com/anionDev/ScriptCollection
6
6
  Author: Marius Göcke
@@ -1,16 +1,16 @@
1
1
  ScriptCollection/Executables.py,sha256=zxDRhv6UHzP0F9lFQvfPv8twy27BEA0-jIMvZfcZTb4,30016
2
- ScriptCollection/GeneralUtilities.py,sha256=lOzmerW9jpokIHiUauraEwR15ACQbXsptLkEYZRyur0,40364
2
+ ScriptCollection/GeneralUtilities.py,sha256=qO7oYjdqmSZxKDoU5leA0XsXS1CdofwTpA8nd0j_b8w,40372
3
3
  ScriptCollection/ProcessesRunner.py,sha256=3mu4ZxzZleQo0Op6o9EYTCFiJfb6kx5ov2YfZfT89mU,1395
4
4
  ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4bQNM6RV6Y,2480
5
5
  ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
6
6
  ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
7
7
  ScriptCollection/RPStream.py,sha256=NRRHL3YSP3D9MuAV2jB_--0KUKCsvJGxeKnxgrRZ9kY,1545
8
- ScriptCollection/ScriptCollectionCore.py,sha256=xkEBohmLhFZhd5lL0KQ0AD8Zyz7qSKWHSkB6nWsWr60,118788
8
+ ScriptCollection/ScriptCollectionCore.py,sha256=0rKJseN_mndaMtnxyCZTcnueb0tRNkSZ4nAr3Z-qrZA,119120
9
9
  ScriptCollection/TasksForCommonProjectStructure.py,sha256=n3x4XRyjabsL0SuMGZz3LJiq5ctjz7mMAS77QoAJFP8,215347
10
10
  ScriptCollection/UpdateCertificates.py,sha256=Eynbgu7k9jLxApP2D_8Il77B6BFjJap6K7oTeEAZYbk,7790
11
11
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- ScriptCollection-3.5.76.dist-info/METADATA,sha256=qIPvrTGWHLk9JpfrVXmOlKewWMH_G1df-74XVkVLZJU,7664
13
- ScriptCollection-3.5.76.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
14
- ScriptCollection-3.5.76.dist-info/entry_points.txt,sha256=1jAL5AuB8mvdw2v-6E7wCZFThurQxchiQynL8DCi-Yg,3545
15
- ScriptCollection-3.5.76.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
- ScriptCollection-3.5.76.dist-info/RECORD,,
12
+ ScriptCollection-3.5.78.dist-info/METADATA,sha256=g3NkZZq5fSh4We9jcONpK0gpMaD6UqHhpz5xEvHQDS4,7664
13
+ ScriptCollection-3.5.78.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
14
+ ScriptCollection-3.5.78.dist-info/entry_points.txt,sha256=1jAL5AuB8mvdw2v-6E7wCZFThurQxchiQynL8DCi-Yg,3545
15
+ ScriptCollection-3.5.78.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
+ ScriptCollection-3.5.78.dist-info/RECORD,,