Skip to content

Commit

Permalink
use full URL to retrieve icons.xml file. Fixes #119.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/trunk@2286 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
amolenaar committed Apr 7, 2008
1 parent 19aa0cf commit 6e7fa00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gaphor/ui/stock.py
Expand Up @@ -125,9 +125,8 @@ def load_stock_icons():
parser.setContentHandler(loader)

filename = pkg_resources.resource_filename('gaphor.ui', 'icons.xml')
if os.name == 'nt':
# Make the filename a full URL
filename = 'file:' + filename.replace('\\\\', '/')
# Make the filename a full URL
filename = 'file:' + filename.replace('\\\\', '/')
#try:
parser.parse(filename)
#except IOError, e:
Expand Down

0 comments on commit 6e7fa00

Please sign in to comment.