Fix in SettingsUpdate

dev-linux
Маслов Иван Дмитриевич 5 years ago
parent 8e603ff62a
commit adeff32b6d

@ -2,7 +2,7 @@ import psutil
import datetime
import logging
import os
import pdb
#RobotDB settings
def Settings():
import os
@ -89,8 +89,9 @@ def Settings():
import pdb
#lFunction to call in subfiles
lSubmoduleFunctionName = "SettingsUpdate"
#pdb.set_trace()
#lSettingsPath = os.path.join(inSettingsFolderPath, "Settings")
lSettingsPath = "\\".join(__file__.split("\\")[:-1])
lSettingsPath = "\\".join(os.path.join(os.getcwd(),__file__).split("\\")[:-1])
#lSettingsPath = os.path.join(os.getcwd(), "Settings")
#Lambda function to get files .py from settings folder except Settings.py
lFileList = [f for f in os.listdir(lSettingsPath) if os.path.isfile(os.path.join(lSettingsPath, f)) and f.split(".")[-1] == "py" and os.path.join(lSettingsPath, f) != __file__]

Loading…
Cancel
Save