From 1bb1711f5ff615afbc1eb3f0e04f3a1fdeacd8e4 Mon Sep 17 00:00:00 2001 From: Justin Emter Date: Fri, 4 Aug 2017 20:22:12 -0700 Subject: [PATCH] Fixed the currdir check in the controller. --- src/PseudoDailyScheduleController.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PseudoDailyScheduleController.py b/src/PseudoDailyScheduleController.py index dc5ab08..e35890a 100644 --- a/src/PseudoDailyScheduleController.py +++ b/src/PseudoDailyScheduleController.py @@ -369,7 +369,7 @@ class PseudoDailyScheduleController(): fileName = "index.html" - writepath = './' if os.getcwd() == "schedules" else "./schedules" + writepath = './' if os.path.basename(os.getcwd()) == "schedules" else "./schedules/" if not os.path.exists(writepath): @@ -400,7 +400,7 @@ class PseudoDailyScheduleController(): fileName = "pseudo_schedule.xml" - writepath = './' if os.getcwd() == "schedules" else "./schedules" + writepath = './' if os.path.basename(os.getcwd()) == "schedules" else "./schedules/" if not os.path.exists(writepath): @@ -428,7 +428,7 @@ class PseudoDailyScheduleController(): fileName = "pseudo_refresh.txt" - writepath = './' if os.getcwd() == "schedules" else "./schedules" + writepath = './' if os.path.basename(os.getcwd()) == "schedules" else "./schedules/" first_line = ''