Anpassung des Codes auf .conf (Passwort etc.)

This commit is contained in:
hubobel 2022-02-25 16:31:44 +01:00
parent 17fcd4fc49
commit dd1f762564
2 changed files with 126 additions and 7 deletions

View file

@ -5,16 +5,10 @@ import json
import sys
conf = os.path.basename(sys.argv[0])
conf = conf.replace(".py", ".conf")
absFilePath = os.path.abspath(__file__)
path, filename = os.path.split(absFilePath)
conf = path + '/' +conf
conf = path + '/' + conf
if os.path.isfile(conf) is False:
print(conf + ' scheint es nicht zu geben.')
print('Ich lege eine neue Datei '+ conf + ' an.')