mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Ensure users python folder is on path
Fix import of expressions if we have to make the the python\expressions folders
This commit is contained in:
parent
295f466d23
commit
51bb80329c
@ -23,6 +23,8 @@ userpythonhome = os.path.join(QgsApplication.qgisSettingsDirPath(), "python")
|
|||||||
expressionspath = os.path.join(userpythonhome, "expressions")
|
expressionspath = os.path.join(userpythonhome, "expressions")
|
||||||
startuppy = os.path.join(userpythonhome, "startup.py")
|
startuppy = os.path.join(userpythonhome, "startup.py")
|
||||||
|
|
||||||
|
sys.path.append(userpythonhome)
|
||||||
|
|
||||||
# exec startup script
|
# exec startup script
|
||||||
if os.path.exists(startuppy):
|
if os.path.exists(startuppy):
|
||||||
execfile(startuppy, locals(), globals())
|
execfile(startuppy, locals(), globals())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user