|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86752 - trunk/libs/geometry/doc
From: mateusz_at_[hidden]
Date: 2013-11-18 08:21:00
Author: mloskot
Date: 2013-11-18 08:21:00 EST (Mon, 18 Nov 2013)
New Revision: 86752
URL: http://svn.boost.org/trac/boost/changeset/86752
Log:
[geometry] Fix make_qbk.py to handle empty string returned by os.path.dirname() if called as: $ python /path/to/make_qbk.py. Print current working directory, for easier debugging.
Text files modified:
trunk/libs/geometry/doc/make_qbk.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/libs/geometry/doc/make_qbk.py
==============================================================================
--- trunk/libs/geometry/doc/make_qbk.py Mon Nov 18 08:08:46 2013 (r86751)
+++ trunk/libs/geometry/doc/make_qbk.py 2013-11-18 08:21:00 EST (Mon, 18 Nov 2013) (r86752)
@@ -12,7 +12,9 @@
import os, sys
-os.chdir(os.path.dirname(sys.argv[0]))
+script_dir = os.path.dirname(__file__)
+os.chdir(os.path.abspath(script_dir))
+print("Boost.Geometry is making .qbk files in %s" % os.getcwd())
if 'DOXYGEN' in os.environ:
doxygen_cmd = os.environ['DOXYGEN']
Boost-Commit 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