svn path=/main/trunk/; revision=5202
os.path.realpath(os.environ["PWD"]) == mycwd:
mycwd = portage.normalize_path(os.environ["PWD"])
ebuild = os.path.join(mycwd, ebuild)
+ebuild = portage.normalize_path(ebuild)
# portdbapi uses the canonical path for the base of the portage tree, but
# subdirectories of the base can be built from symlinks (like crossdev does).
ebuild_portdir = os.path.realpath(os.path.dirname(os.path.dirname(ebuild)))