commit 65564e1c4b11ae6d4b030bf75a8f8af4eaa50051
parent d6376b966f0bf10888cf69196effb4c7c6beafd8
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date: Wed, 15 Apr 2020 08:29:58 -0700
Fix directory bug that prevents setting loading.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Songs2Slides.py b/Songs2Slides.py
@@ -40,7 +40,7 @@ def GetLyrics(artist, song):
# Parses the lyrics into blocks
def ParseLyrics(lyrics):
# Load settings
- with open("settings.json") as f:
+ with open(os.path.join(os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))), "settings.json")) as f:
settings = json.load(f)
# Parse lyrics
@@ -65,7 +65,7 @@ def ParseLyrics(lyrics):
# Create powerpoint
def CreatePptx(parsedLyrics, filepath, openFirst):
# Load settings
- with open("settings.json") as f:
+ with open(os.path.join(os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))), "settings.json")) as f:
settings = json.load(f)
# Create presentation