ScriptCollection 3.5.147__py3-none-any.whl → 3.5.148__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/SCLog.py CHANGED
@@ -24,7 +24,7 @@ class SCLog:
24
24
  print_as_color: bool
25
25
  zone_of_time: timezone = None
26
26
 
27
- def __init__(self, log_file: str = None, loglevel: LogLevel = None,print_as_color: bool = True):
27
+ def __init__(self, log_file: str = None, loglevel: LogLevel = None, print_as_color: bool = True):
28
28
  self.log_file = log_file
29
29
  if loglevel is None:
30
30
  self.loglevel = LogLevel.Information
@@ -46,8 +46,8 @@ class SCLog:
46
46
  @GeneralUtilities.check_arguments
47
47
  def __log_line(self, message: str, loglevel: LogLevel = None):
48
48
 
49
- print_to_console:bool=True
50
- print_to_logfile:bool=self.log_file is not None
49
+ print_to_console: bool = True
50
+ print_to_logfile: bool = self.log_file is not None
51
51
 
52
52
  if loglevel is None:
53
53
  loglevel = LogLevel.Information
@@ -91,8 +91,8 @@ class SCLog:
91
91
  part3 = f"] {message}"
92
92
 
93
93
  if print_to_console:
94
+ print_to_std_out: bool = loglevel in (LogLevel.Debug, LogLevel.Information)
94
95
  if self.add_overhead_to_console:
95
- print_to_std_out: bool = loglevel in (LogLevel.Debug, LogLevel.Information)
96
96
  GeneralUtilities.print_text(part1, print_to_std_out)
97
97
  if loglevel == LogLevel.Information:
98
98
  GeneralUtilities.print_text_in_green(part2, print_to_std_out, self.print_as_color)
@@ -110,7 +110,6 @@ class SCLog:
110
110
  else:
111
111
  GeneralUtilities.print_text(message+"\n", print_to_std_out)
112
112
 
113
-
114
113
  if print_to_logfile:
115
114
  GeneralUtilities.ensure_file_exists(self.log_file)
116
115
  if self.add_overhead_to_logfile:
@@ -33,7 +33,7 @@ from .ProgramRunnerPopen import ProgramRunnerPopen
33
33
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
34
34
  from .SCLog import SCLog, LogLevel
35
35
 
36
- version = "3.5.147"
36
+ version = "3.5.148"
37
37
  __version__ = version
38
38
 
39
39
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ScriptCollection
3
- Version: 3.5.147
3
+ Version: 3.5.148
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
@@ -6,12 +6,12 @@ ScriptCollection/ProcessesRunner.py,sha256=3mu4ZxzZleQo0Op6o9EYTCFiJfb6kx5ov2YfZ
6
6
  ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4bQNM6RV6Y,2480
7
7
  ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
8
8
  ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
9
- ScriptCollection/SCLog.py,sha256=VSQdklttjq1XlQMHbrlKLzNmTf1u_AevayWwhl0KBeM,4494
10
- ScriptCollection/ScriptCollectionCore.py,sha256=isnzIuTRVO_97Xc0NBaukbTcZeF7BA_aRwsWHqvPjkw,136482
9
+ ScriptCollection/SCLog.py,sha256=GJ44S6VaBVwX5Dd6MIrdZn6I0dpaaYKVq9w-N0nMXlo,4496
10
+ ScriptCollection/ScriptCollectionCore.py,sha256=ue-SRkt8EVrFEXTqSJ-g0V-EtaxbN67jbI1J3T3Lk_g,136482
11
11
  ScriptCollection/TasksForCommonProjectStructure.py,sha256=aVwQq2kQwZmL-NAhOVo_G4ikYHsI92SGvhkmmGJlSw8,240711
12
12
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- scriptcollection-3.5.147.dist-info/METADATA,sha256=1rxb3N70WU29OYTWmBvSV7yHVGvs0K775qc9sHVRo0s,7694
14
- scriptcollection-3.5.147.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- scriptcollection-3.5.147.dist-info/entry_points.txt,sha256=AvmVO9iyWImExpvzL3YYQ9AOEiUIN9guPRRG_W_VNWY,4116
16
- scriptcollection-3.5.147.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
17
- scriptcollection-3.5.147.dist-info/RECORD,,
13
+ scriptcollection-3.5.148.dist-info/METADATA,sha256=5LUruhTUIaiA13P-RyZTSV_OSgRma7YCEpMuyO4KKG4,7694
14
+ scriptcollection-3.5.148.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ scriptcollection-3.5.148.dist-info/entry_points.txt,sha256=AvmVO9iyWImExpvzL3YYQ9AOEiUIN9guPRRG_W_VNWY,4116
16
+ scriptcollection-3.5.148.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
17
+ scriptcollection-3.5.148.dist-info/RECORD,,