os.path.join - Isn't working

Gregory Piñero gregpinero at gmail.com
Fri Jan 27 15:01:48 EST 2006


Wow, sorry I sent that a little too fast.  I just had to remove the \\
before the graphics.  Thus this did work:

os.path.join('C:\\Documents and
Settings\\Gregory','graphics\\knight\\been hit e0001.bmp')

-Greg


On 1/27/06, Gregory Piñero <gregpinero at gmail.com> wrote:
> Would someone mind explaining this seemingly strange behavior of
> os.path.join to me?
>
> [Dbg]>>> os.path.join('C:\\Documents and
> Settings\\Gregory','\\graphics\\knight\\been hit e0001.bmp')
> >>'\\graphics\\knight\\been hit e0001.bmp'
>
> And what is the right way to reference this path relatively?
>
> --
> Gregory Piñero
> Chief Innovation Officer
> Blended Technologies
> (www.blendedtechnologies.com)
>


--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)



More information about the Python-list mailing list