diff --git a/fofix/game/song/song.py b/fofix/game/song/song.py index 9c47bd004..5badf5585 100644 --- a/fofix/game/song/song.py +++ b/fofix/game/song/song.py @@ -2840,7 +2840,7 @@ def loadSong(engine, name, library = DEFAULT_LIBRARY, playbackOnly = False, note # escape all characters that cause the problem. For now the change dir # method is a cleaner work around than reimpplementing that function here. orgpath = os.path.abspath('.') - os.chdir("{1}{0}{2}{0}".format(os.path.sep, library, name)) + os.chdir(engine.resource.fileName(library, name)) songOggFiles = glob.glob('*.ogg') os.chdir(orgpath)