Fix issues with paths and linux / os x
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user