Show More
@@ -940,11 +940,11 b' class InteractiveShell(SingletonConfigurable):' | |||
|
940 | 940 | p_ver = sys.version_info[:2] |
|
941 | 941 | |
|
942 | 942 | # Predict version from py[thon]-x.x in the $VIRTUAL_ENV |
|
943 |
|
|
|
944 |
if |
|
|
945 |
predicted_path = Path(str(virtual_env_path).format(* |
|
|
943 | re_m = re.search(r"\bpy(?:thon)?([23])\.(\d+)\b", os.environ["VIRTUAL_ENV"]) | |
|
944 | if re_m: | |
|
945 | predicted_path = Path(str(virtual_env_path).format(*re_m.groups())) | |
|
946 | 946 | if predicted_path.exists(): |
|
947 |
p_ver = |
|
|
947 | p_ver = re_m.groups() | |
|
948 | 948 | |
|
949 | 949 | virtual_env = str(virtual_env_path).format(*p_ver) |
|
950 | 950 |
General Comments 0
You need to be logged in to leave comments.
Login now