From 51f915a11c4d84a68d94a2d20adce7c4ead5de9f Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 10 Nov 2011 02:09:06 +0100 Subject: fixes to make tilesets work for both me and Tempus --- src/ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ui.py') diff --git a/src/ui.py b/src/ui.py index 0ea63b3..f933457 100644 --- a/src/ui.py +++ b/src/ui.py @@ -246,7 +246,10 @@ class KPMainWindow(QtGui.QMainWindow): @QtCore.pyqtSlot() def updateObjectSelector(self): - tileset = KPTileset.loadFromArc('/Users/Tempus/Dropbox/NEWERsmbw/Test3.arc') + try: + tileset = KPTileset.loadFromArc('/Users/Tempus/Dropbox/NEWERsmbw/Test3.arc') + except IOError: + tileset = KPTileset.loadFromArc('/home/me/Dropbox/NEWERsmbw/Test3.arc') self.objectSelector.setModel(tileset.getModel()) tileset.getModel().view = self.objectSelector -- cgit v1.2.3