Skip to content

Commit

Permalink
Fix exception in loadSong (song.py)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvanson committed Oct 28, 2017
1 parent 9d1cd92 commit 60d097f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fofix/game/song/song.py
Expand Up @@ -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)
Expand Down

0 comments on commit 60d097f

Please sign in to comment.