We're long past worrying about Python versions older than 1.5.2;

remove old compatibility definition of os.path.abspath().
This commit is contained in:
Fred Drake 2003-10-01 04:03:54 +00:00
parent 1dc3bb4722
commit 94b3463f7e
1 changed files with 0 additions and 11 deletions

View File

@ -46,17 +46,6 @@ import shutil
import sys
if not hasattr(os.path, "abspath"):
# Python 1.5.1 or earlier
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)