[Tutor] Unusual pathfile
Dave Angel
d at davea.name
Tue Sep 13 18:55:04 CEST 2011
1. Don't top-post. Put your response after whatever parts of a previous
message you're quoting. And delete the parts that are no longer relevant.
2. If you used tabs in your code, convert to spaces before pasting into
some email editors. Apparently your email editor is converting the tabs
to single spaces.
On 09/13/2011 11:41 AM, Susana Iraiis Delgado Rodriguez wrote:
> Hi!
> I just want to look the pathfile like this: C:\Python26 instead of
> C:/\Python26, I feel the loop repeats its walking with this pathfile
> structure.
>
> <SNIP>
Try using
mypath = os.path.abspath(mypath)
No clue what you mean by "repeats its walking"
--
DaveA
More information about the Tutor
mailing list