Fix issues with paths and linux / os x

This commit is contained in:
blitzman
2017-01-27 20:30:11 -05:00
parent cbf7f7d320
commit fb538027f7
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ class BitmapLoader():
except KeyError:
print "Missing icon file from zip: {0}".format(path)
else:
path = config.getPyfaPath('imgs\\' + location + "\\" + filename)
path = config.getPyfaPath('imgs' + os.sep + location + os.sep + filename)
if os.path.exists(path):
return wx.Image(path)

View File

@@ -879,7 +879,7 @@ class ItemEffects(wx.Panel):
"""
import os
file = config.getPyfaPath("eos\\effects\\%s.py" % event.GetText().lower())
file = config.getPyfaPath(os.path.join("eos" , "effects", "%s.py" % event.GetText().lower()))
if not os.path.isfile(file):
open(file, 'a').close()