os.path.join - Isn't working
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:
Settings\\Gregory','graphics\\knight\\been hit e0001.bmp')
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
Chief Innovation Officer
More information about the Python-list