aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-16 21:22:14 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-16 21:22:14 +0200
commitb7bc7fc59c1377337ab1cf1df72d417d66b72302 (patch)
tree9bf84ce7b4dfd599bb0ab6f2f70270443a028ce6 /pym/portage/__init__.py
parentFix typos in comments. (diff)
downloadportage-b7bc7fc59c1377337ab1cf1df72d417d66b72302.tar.gz
portage-b7bc7fc59c1377337ab1cf1df72d417d66b72302.tar.bz2
portage-b7bc7fc59c1377337ab1cf1df72d417d66b72302.zip
Expand sys.executable earlier, so that change of sys.executable symlink
between starting main Portage process and starting ebuild.sh process doesn't affect ebuild.sh subprocesses.
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r--pym/portage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index a6534b12d..b2cbc0f0e 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -325,6 +325,8 @@ except (ImportError, OSError) as e:
# END OF IMPORTS -- END OF IMPORTS -- END OF IMPORTS -- END OF IMPORTS -- END
# ===========================================================================
+_python_interpreter = os.path.realpath(sys.executable)
+
def _ensure_default_encoding():
default_encoding = sys.getdefaultencoding().lower().replace('-', '_')