...
Create an empty file called pywps.cgi
in this folder and insert the following code in it, after checking the python path (and correcting it: for example if you have Python2.7 installed, the first line should be #!c:\python27\python.exe
): Note for anaconda users this should be #!c:\/anaconda\/python.exe .and the MPLCONFIGDIR should be C:/Anaconda/Lib/site-packages/matplotlib/mpl-data
Code Block | ||
---|---|---|
| ||
#!C:\python27\python.exe import sys sys.path.insert(0, r"C:/pywps") import os os.environ['PYWPS_CFG']='C:/pywps/pywps_processes/default.cfg' os.environ['MPLCONFIGDIR']='C:/Python27/Lib/site-packages/matplotlib/mpl-data' # Note that WPS runs as apache user and not as you, so many more user variables might be needed. # Restart Apache after adding one. import wps |
...
Acknowlegdements The first version of this documentation was made by MSc student Joost Boerboom for his thesis, financed by Deltares under the Next Generation Hydro Software program executed for Rijkswaterstaat. Subsequently, this documentation was improved by Deltares in projects EMODnet chemistry, ECOSTRESS and ECOSTRESS FAST.