[Pythonmac-SIG] [2.2 MacCarbon Python] OS.path problems

Just van Rossum just@letterror.com
Thu, 14 Feb 2002 22:37:14 +0100


Ryan Wilcox wrote:

> print (os.path.join("HD", "Developer", "OSS-Stable"))
>  
> will return
> 
> :HD:Developer:OSS-Stable
> 
> on my system
> 
> Is this correct behavior?

Yes. I think this is what you want:

  print os.path.join("HD:", "Developer", "OSS-Stable")

Just