[QGIS Commit] r11596 - trunk/qgis/python/plugins/osm

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Sep 8 12:20:19 EDT 2009


Author: jef
Date: 2009-09-08 12:20:18 -0400 (Tue, 08 Sep 2009)
New Revision: 11596

Modified:
   trunk/qgis/python/plugins/osm/OsmLoadDlg.py
Log:
fix osm style path detection

Modified: trunk/qgis/python/plugins/osm/OsmLoadDlg.py
===================================================================
--- trunk/qgis/python/plugins/osm/OsmLoadDlg.py	2009-09-08 15:25:22 UTC (rev 11595)
+++ trunk/qgis/python/plugins/osm/OsmLoadDlg.py	2009-09-08 16:20:18 UTC (rev 11596)
@@ -67,8 +67,7 @@
 
         # load default values to combobox determining style for custom renderer
         self.styles=["Small scale","Medium scale","Large scale"]
-        thisFile=QString(__file__)
-        directory=thisFile.left(thisFile.lastIndexOf('/'))
+        directory=QFileInfo(__file__).canonicalPath()
         self.styleFiles=[directory+"/styles/small_scale.style", directory+"/styles/medium_scale.style", directory+"/styles/big_scale.style"]
         self.styleCombo.addItems(self.styles)
 



More information about the QGIS-commit mailing list