Mercurial > cpython-lru_cache-weakref
diff Lib/tkinter/_fix.py @ 77154:294f8aeb4d4b
Implemented PEP 405 (Python virtual environments).
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> |
|---|---|
| date | Sat, 26 May 2012 03:45:29 +0100 |
| parents | f214e1bf031d |
| children |
line wrap: on
line diff
--- a/Lib/tkinter/_fix.py Sat May 26 03:25:23 2012 +0100 +++ b/Lib/tkinter/_fix.py Sat May 26 03:45:29 2012 +0100 @@ -46,10 +46,10 @@ s = "\\" + s[3:] return s -prefix = os.path.join(sys.prefix,"tcl") +prefix = os.path.join(sys.base_prefix,"tcl") if not os.path.exists(prefix): # devdir/../tcltk/lib - prefix = os.path.join(sys.prefix, os.path.pardir, "tcltk", "lib") + prefix = os.path.join(sys.base_prefix, os.path.pardir, "tcltk", "lib") prefix = os.path.abspath(prefix) # if this does not exist, no further search is needed if os.path.exists(prefix):
