diff options
-rwxr-xr-x | Doc/tools/mkhowto | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto index 6481e93..f92cbda 100755 --- a/Doc/tools/mkhowto +++ b/Doc/tools/mkhowto @@ -46,6 +46,16 @@ import sys import tempfile +if not hasattr(os.path, "abspath"): + def abspath(path): + """Return an absolute path.""" + if not os.path.isabs(path): + path = os.path.join(os.getcwd(), path) + return os.path.normpath(path) + + os.path.abspath = abspath + + MYDIR = os.path.abspath(sys.path[0]) TOPDIR = os.path.dirname(MYDIR) |