I call script "plotWLayer1" containing the line
User script funcPlot is also located in the same path but when I execute the script Qgis logs the following:
No module name funcPlot
I have tried adding the path using,
import os import sys sys.path.append(os.getcwd())
with the same result. What am I doing wrong? My intention is to give these scripts to fellow users within my company but if I hard code sys.append() the script would have to modified per user.
Update 1: For the moment I am using the following code under the assumption that only the username for different users in my company would change but any suggestions would still be welcomed.
import getpass username = getpass.getuser() import sys exePath='C:\\Users\\'+username+'\.qgis2\\processing\\scripts' sys.append(exePath)