RE: [Zope] Python Question
21 May
2004
21 May
'04
4:36 p.m.
From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Laura McCord
I want to modify my python code to append new required users to my .htaccess file
So my logic is: ... -- This is what my code looks like -- def createUser(username, basedir): import os dirpath = "/var/www/html/da/" + basedir + "/.htaccess" dirpwd = "/var/www/html/da/" + basedir + "/.htpasswd" ...
So what is your question? I suggest using os.path functions to build up your paths rather than directly coding them as you have done. That way the paths port to other operating systems. Cheers, Tom P
7990
Age (days ago)
7990
Last active (days ago)
0 comments
1 participants
participants (1)
-
Passin, Tom