From 6e7fa00d4e481c77a15be5674feea713a9a774a1 Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Mon, 7 Apr 2008 07:56:16 +0000 Subject: [PATCH] use full URL to retrieve icons.xml file. Fixes #119. git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/trunk@2286 a8418922-720d-0410-834f-a69b97ada669 --- gaphor/ui/stock.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gaphor/ui/stock.py b/gaphor/ui/stock.py index 9434b1ca0b..2606ace5d9 100644 --- a/gaphor/ui/stock.py +++ b/gaphor/ui/stock.py @@ -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: