Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r84680:6dc8fac6b793
Date: 2016-05-24 23:14 -0700
http://bitbucket.org/pypy/pypy/changeset/6dc8fac6b793/
Log: sys.version isn't boostrapped yet when freezing app_main (win32)
diff --git a/lib-python/3/importlib/_bootstrap.py
b/lib-python/3/importlib/_bootstrap.py
--- a/lib-python/3/importlib/_bootstrap.py
+++ b/lib-python/3/importlib/_bootstrap.py
@@ -768,7 +768,7 @@
else:
registry_key = cls.REGISTRY_KEY
key = registry_key.format(fullname=fullname,
- sys_version=sys.version[:3])
+ sys_version='%d.%d' % sys.version_info[:2])
try:
with cls._open_registry(key) as hkey:
filepath = _winreg.QueryValue(hkey, "")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit