mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05: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")
|
||||
startuppy = os.path.join(userpythonhome, "startup.py")
|
||||
|
||||
sys.path.append(userpythonhome)
|
||||
|
||||
# exec startup script
|
||||
if os.path.exists(startuppy):
|
||||
execfile(startuppy, locals(), globals())
|
||||
|
Loading…
x
Reference in New Issue
Block a user