First of all i have tried to make a python script for the website which lives in the directory _ops. Calling this script fails some how. It looks like python doesn't allow access to folders or files beginning with an underscore...
Then i tried to put my script in the base directory of the website, then it works, but calling extract_rst.py through execfile() do not work. I get an error:
curdir = p.abspath(p.dirname(__file__))
86 source_dir = p.join(curdir, 'source')
87 while not (p.exists(p.join(curdir, 'data/tribes')) and p.exists(p.join(curdir, 'data/world'))):
NameError: global name 'p' is not defined
I do not understand that. Maybe the double use of 'import os' is the culprit?
As ever, the devil is in the details...
First of all i have tried to make a python script for the website which lives in the directory _ops. Calling this script fails some how. It looks like python doesn't allow access to folders or files beginning with an underscore...
Then i tried to put my script in the base directory of the website, then it works, but calling extract_rst.py through execfile() do not work. I get an error:
curdir = p.abspath( p.dirname( __file_ _)) p.join( curdir, 'data/tribes')) and p.exists( p.join( curdir, 'data/world'))):
86 source_dir = p.join(curdir, 'source')
87 while not (p.exists(
NameError: global name 'p' is not defined
I do not understand that. Maybe the double use of 'import os' is the culprit?