I have the following code, and I run it from localhost:
def create_names_file(req, names, data, profileid):
s = names
fname = str(profileid)
fpath = req.conf["inf_path"]+"/"+fname
f = open(fpath, 'w')
req.conf["inf_path"]
is /opt/fp/trunk/analysis/2/
, and I receive permission error.I use Ubuntu OS. How can I solve this problem?