Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 597bc1d commit 964c074Copy full SHA for 964c074
1 file changed
Doc/tools/mkhowto
@@ -46,6 +46,16 @@ import sys
46
import tempfile
47
48
49
+if not hasattr(os.path, "abspath"):
50
+ def abspath(path):
51
+ """Return an absolute path."""
52
+ if not os.path.isabs(path):
53
+ path = os.path.join(os.getcwd(), path)
54
+ return os.path.normpath(path)
55
+
56
+ os.path.abspath = abspath
57
58
59
MYDIR = os.path.abspath(sys.path[0])
60
TOPDIR = os.path.dirname(MYDIR)
61
0 commit comments