mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2026-01-04 17:23:15 +00:00
Fixed the currdir check in the controller.
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user