Fixing resource path
@@ -66,8 +66,8 @@ def resolve_resource_file(res_name):
return filename
# Finally look for it in the source package
- filename = dirname(os.path.abspath(__file__))+"../res/"+res_name
- filename = os.path.normpath(filename)
+ filename = os.path.join(os.path.dirname(__file__), '..', 'res', res_name)
+ filename = os.path.abspath(os.path.normpath(filename))
if os.path.isfile(filename):
return filename
