On 9/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I'm using windows, the current methods for getting directory path use
> "\" as a seperator, which happens to kill a lot of stuff....
>
> I've tried:
> os.currpwd()
>
> and:
> import pkg_resources
> egg = pkg_resources.get_distribution("Social-Base")
> path = egg.location
>
> Instead of the paths being like 'C:\stuff\stuff\stuff', i need them to
> be like 'C:/stuff/stuff/stuff'
>
> Note this problem only applies to windows....
>
Could you point out what's your doing? both pkg_resources and os
modules take care of all this for you. so it's not for programming
tasks.
Do you need to print out the content?
also C:/stuff/stuff/stuff is incorrect in any OS
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---