checking for when a file or folder exists, typing

Bryan Rasmussen bry at itnisk.com
Sun Jun 12 14:56:45 EDT 2005


>Hi Bryan,

>Here's a potential idea.  Try converting the variable to a string by
>using the following syntax:


>   thePath = str(thePathArg)


Actually it was a stupid thing, what happened was I was looping through the
commandline to build a file path in cases where there was more than one
commandline argument, such as when one passes c:/Documents and Settings/ 

only I was adding the space in the wrong place so I never had a proper
location.

Thanks though, it got me back to the problem and solved it.  




More information about the Python-list mailing list