Skip to content

Commit

Permalink
[server] Stop messing with app initialization paths
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Feb 15, 2018
1 parent e4407c6 commit f1f1c3d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/server/qgsserver.cpp
Expand Up @@ -194,14 +194,6 @@ bool QgsServer::init()
QCoreApplication::setOrganizationDomain( QgsApplication::QGIS_ORGANIZATION_DOMAIN );
QCoreApplication::setApplicationName( QgsApplication::QGIS_APPLICATION_NAME );

#if !defined(Q_OS_WIN)
// Set the QGIS_PREFIX_PATH environnemnt instead of calling directly
// setPrefixPath: this will allow running server from build directory
// and get the paths accordingly
setenv( "QGIS_PREFIX_PATH", CMAKE_INSTALL_PREFIX, 1 );
#endif

//Default prefix path may be altered by environment variable
QgsApplication::init();

#if defined(SERVER_SKIP_ECW)
Expand Down

0 comments on commit f1f1c3d

Please sign in to comment.