Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-25 06:13:56


Well... the stage.py test still fails under msvc. It turned out to be harder
to fix this. Look at the attached test. It's supposed to do nothing,
only print the directory where "bjam" is run. It prints it, something like

C:\DOCUME~1\.....

and this short name breaks things. When I cd to the same directory and
run the same bjam command like, I get

C:\Documents and Settings\....

IOW, invoking bjam from Python causes problems. I'm not that eager to find
out what's wrong with out test system... it would be nice if we can convert
short current path into long current path.

Does anyone knows a Windows API function which can return long path given a
short one? I've tried to look, but found none.

Thanks,
Volodya --------------Boundary-00=_8VXAQRPBJKYGXSPZJY7V Content-Type: text/x-python;
charset="us-ascii";
name="pwd.py"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="pwd.py"

#!/usr/bin/python

from BoostBuild import Tester, List

# Create a temporary working directory
t = Tester(verbose=1)

# Create the needed files
t.write("project-root.jam", "")
t.write("Jamfile", """
ECHO [ PWD ] ;
""")

t.run_build_system()
print t.stdout()

t.cleanup()
 --------------Boundary-00=_8VXAQRPBJKYGXSPZJY7V--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk