Skip to content

Instantly share code, notes, and snippets.

@jef-n
Created November 28, 2012 11:36
Show Gist options
  • Save jef-n/4160634 to your computer and use it in GitHub Desktop.
Save jef-n/4160634 to your computer and use it in GitHub Desktop.
diff --git a/src/python/qgspythonutilsimpl.cpp b/src/python/qgspythonutilsimpl.cpp
index 7375226..69b46fa 100644
--- a/src/python/qgspythonutilsimpl.cpp
+++ b/src/python/qgspythonutilsimpl.cpp
@@ -457,7 +457,7 @@ QString QgsPythonUtilsImpl::homePythonPath()
}
else
{
- return '"' + settingsDir + "python\"";
+ return '"' + settingsDir.replace( '\\', "\\\\" ) + "python\"";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment