Lines 116-124
if not os.path.isabs(ebuild):
Link Here
|
116 |
# Try to get the non-canonical path from the PWD evironment variable, since |
116 |
# Try to get the non-canonical path from the PWD evironment variable, since |
117 |
# the canonical path returned from os.getcwd() may may be unusable in |
117 |
# the canonical path returned from os.getcwd() may may be unusable in |
118 |
# cases where the directory stucture is built from symlinks. |
118 |
# cases where the directory stucture is built from symlinks. |
119 |
if "PWD" in os.environ and os.environ["PWD"] != mycwd and \ |
119 |
if "PWD" in os.environ: |
120 |
os.path.realpath(os.environ["PWD"]) == mycwd: |
120 |
mypwd = portage._unicode_decode(os.environ["PWD"], encoding=portage._encodings['fs']) |
121 |
mycwd = portage.normalize_path(os.environ["PWD"]) |
121 |
if mypwd != mycwd and os.path.realpath(mypwd) == mycwd: |
|
|
122 |
mycwd = portage.normalize_path(os.environ["PWD"]) |
122 |
ebuild = os.path.join(mycwd, ebuild) |
123 |
ebuild = os.path.join(mycwd, ebuild) |
123 |
ebuild = portage.normalize_path(ebuild) |
124 |
ebuild = portage.normalize_path(ebuild) |
124 |
# portdbapi uses the canonical path for the base of the portage tree, but |
125 |
# portdbapi uses the canonical path for the base of the portage tree, but |