From adeff32b6dc9d45248737df2723919dd03651174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2=20=D0=98=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=20=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B5=D0=B2=D0=B8?= =?UTF-8?q?=D1=87?= Date: Fri, 24 Jan 2020 14:16:42 +0300 Subject: [PATCH] Fix in SettingsUpdate --- Utils/RobotDB/SettingsExample.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Utils/RobotDB/SettingsExample.py b/Utils/RobotDB/SettingsExample.py index 3a97df1b..bdb56d6c 100644 --- a/Utils/RobotDB/SettingsExample.py +++ b/Utils/RobotDB/SettingsExample.py @@ -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__]