[Tutor] Unusual pathfile

Susana Iraiis Delgado Rodriguez susana.delgado_s at utzmg.edu.mx
Tue Sep 13 19:12:08 CEST 2011


I think I've received many complains for my questions and messages, I know
you're great programmers and this is for helping beginners or any level of
Python users. I tried to correct the code I sent the best I could, than you
for your time, I'll try to manage it myself.
2011/9/13 Steven D'Aprano <steve at pearwood.info>

> 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. About the indention for the code, I tried my best to make it
>> clear ande neat. But the mi e-mail editor it's mixing-up spaces.
>> Here's again:
>>
>
> Susana, you are showing too much code that is unrelated to your problem.
> Your problem is that your code gives the wrong result for the file name: you
> want C:\Python26 but get C:/\Python26.
>
> You should isolate the part of your code that produces the path names. We
> don't need the part that creates buttons, or writes CSV files, or prints
> messages to the user. As it stands now, I can't even tell which part of the
> code generates "C:/\Python26", let alone how to fix it.
>
> You should have a small function, no more than ten or twenty lines, that
> handles the path names, and nothing else.
>
>
>
> --
> Steven
>
> ______________________________**_________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110913/03058990/attachment.html>


More information about the Tutor mailing list