Variable passing to external program - How??
Rigga at noemail.com
Sat Oct 11 13:17:29 CEST 2003
Ok first please bear with me as I am a total Python n00b..
Can anyone explain why this does not like me using % FileLoc in the
# Check that the folder is accessible and writeable
FileLoc = os.path.exists('/home/rigga')
print "File location exists:"
AccFlag = os.access('% FileLoc',os.R_OK | os.X_OK | os.W_OK)
print "You have FULL access to the location"
print "**Error - You do not have access to the location**"
print "No files found exiting..."
I have full access to the folder I am checking however it always returns no
files found (FileLoc = 0) however if I specify the folder I want to test in
the os.system call it works fine...
Any help appreciated
More information about the Python-list