Skip to content

Commit

Permalink
uploaded version v.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyzonix authored Jan 24, 2022
1 parent b2e95d0 commit 1033a0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mgfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# -
# file | mgfield.py
# project | MGFieldPy
# project-v | 1.1
# project-v | 1.11
#
#
# Required packages (pip3)
Expand Down Expand Up @@ -45,7 +45,7 @@ class Core(object):
# Zeitservice für die Consolenausgabe
def getCTime(self):
time = datetime.now().strftime("%H:%M:%S.%f")
timeFormatted = time[:-4]
timeFormatted = time[:-5]
curTime = "[" + str(timeFormatted) + "]"
return curTime

Expand Down Expand Up @@ -175,6 +175,8 @@ def __init__(self):
print(self.getCTime(), "running version:", self.version)
# Überprüft ob das Logschreiben aktiviert ist, wenn ja --> initialisiert das Logschreiben
if self.log:
if not (os.path.exists(os.getcwd() + "/logs")):
os.mkdir(os.getcwd() + "/logs")
print(self.getCTime(), "initializing logwriter")
self.writeLog()

Expand Down

0 comments on commit 1033a0f

Please sign in to comment.