Skip to content
Permalink
Browse files

fix python path setting in windows

  • Loading branch information
jef-n committed Jan 29, 2012
1 parent b60a63b commit 215e05be9a24c28652db96c9078078ad97ba45cc
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/python/qgspythonutilsimpl.cpp
@@ -60,8 +60,8 @@ void QgsPythonUtilsImpl::initPython( QgisInterface* interface )

#ifdef Q_OS_WIN
runString( "oldhome=None" );
runString( "if os.environ.has_key('HOME'): oldhome=os.environ['HOME']" );
runString( "os.environ['HOME']=os.environ['USERPROFILE']" );
runString( "if os.environ.has_key('HOME'): oldhome=os.environ['HOME']\n" );
runString( "os.environ['HOME']=os.environ['USERPROFILE']\n" );
#endif

// construct a list of plugin paths
@@ -120,7 +120,7 @@ void QgsPythonUtilsImpl::initPython( QgisInterface* interface )
runString( "qgis.utils.plugin_paths = [" + pluginpaths.join( "," ) + "]" );

#ifdef Q_OS_WIN
runString( "if oldhome: os.environ['HOME']=oldhome" );
runString( "if oldhome: os.environ['HOME']=oldhome\n" );
#endif

// initialize 'iface' object

0 comments on commit 215e05b

Please sign in to comment.
You can’t perform that action at this time.