Skip to content

Commit

Permalink
deduce plugin directory from a plugin that actually still exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 7, 2013
1 parent 5e39bac commit 22cb38b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cmake/FindQGIS.cmake
Expand Up @@ -15,7 +15,7 @@ IF(WIN32)
#MESSAGE("Searching for QGIS in $ENV{PROGRAMFILES}/Quantum GIS")
IF (MINGW)
FIND_PATH(QGIS_PLUGIN_DIR
NAMES libnortharrowplugin.dll
NAMES libdelimitedtextplugin.dll
PATHS
"$ENV{PROGRAMFILES}/Quantum GIS/plugins"
)
Expand All @@ -38,7 +38,7 @@ IF(WIN32)

IF (MSVC)
FIND_PATH(QGIS_PLUGIN_DIR
NAMES northarrowplugin.dll
NAMES delimitedtextplugin.dll
PATHS
"$ENV{OSGEO4W_ROOT}/apps/qgis/plugins"
"$ENV{PROGRAMFILES}/Quantum GIS/plugins"
Expand Down Expand Up @@ -82,7 +82,7 @@ ELSE(WIN32)
SET (QGIS_MAC_PATH /Applications/QGIS.app/Contents)
#MESSAGE("Searching for QGIS in /usr/bin; /usr/local/bin")
FIND_PATH(QGIS_PLUGIN_DIR
NAMES libnortharrowplugin.so
NAMES libdelimitedtextplugin.so
PATHS
/usr/lib64/qgis/plugins
/usr/lib/qgis
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/sextante/grass/GrassUtils.py
Expand Up @@ -340,10 +340,10 @@ def checkGrassIsInstalled(ignoreRegistrySettings=False):
return ("The specified GRASS folder does not contain a valid set of GRASS modules.\n"
+ "Please, go to the SEXTANTE settings dialog, and check that the GRASS\n"
+ "folder is correctly configured")

settings = QSettings()
if not ignoreRegistrySettings:
GRASS_INSTALLED = "/SextanteQGIS/GrassInstalled"
GRASS_INSTALLED = "/SextanteQGIS/GrassInstalled"
if settings.contains(GRASS_INSTALLED):
return

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/sextante/saga/SagaUtils.py
Expand Up @@ -137,7 +137,7 @@ def checkSagaIsInstalled(ignoreRegistrySettings=False):

settings = QSettings()
if not ignoreRegistrySettings:
SAGA_INSTALLED = "/SextanteQGIS/SagaInstalled"
SAGA_INSTALLED = "/SextanteQGIS/SagaInstalled"
if settings.contains(SAGA_INSTALLED):
return

Expand Down

0 comments on commit 22cb38b

Please sign in to comment.