Nested os.path.join()'s
Paul Scott
pscott at uwc.ac.za
Mon May 5 10:21:53 EDT 2008
Today, I needed to concatenate a bunch of directory paths and files
together based on user input to create file paths. I achieved this
through nested os.path.join()'s which I am unsure if this is a good
thing or not.
example:
if os.path.exists(os.path.join(basedir,picdir)) == True :
blah blah
Question is, is there a better way of doing this? The above *works* but
it looks kinda hackish...
--Paul
-------------- next part --------------
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm
More information about the Python-list
mailing list