Fix in SettingsUpdate

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

@ -2,7 +2,7 @@ import psutil
import datetime import datetime
import logging import logging
import os import os
import pdb
#RobotDB settings #RobotDB settings
def Settings(): def Settings():
import os import os
@ -89,8 +89,9 @@ def Settings():
import pdb import pdb
#lFunction to call in subfiles #lFunction to call in subfiles
lSubmoduleFunctionName = "SettingsUpdate" lSubmoduleFunctionName = "SettingsUpdate"
#pdb.set_trace()
#lSettingsPath = os.path.join(inSettingsFolderPath, "Settings") #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") #lSettingsPath = os.path.join(os.getcwd(), "Settings")
#Lambda function to get files .py from settings folder except Settings.py #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__] 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