Anpassung des Codes auf .conf (Passwort etc.)
This commit is contained in:
parent
17fcd4fc49
commit
dd1f762564
2 changed files with 126 additions and 7 deletions
|
|
@ -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.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue