[pyzo] 52/68: Detect new default miniconda location

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Sep 28 09:47:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository pyzo.

commit c6623e5884356a96d4b11624ec77d0474f7765d9
Author: Almar Klein <almar.klein at gmail.com>
Date:   Sat Sep 24 15:03:39 2016 +0200

    Detect new default miniconda location
---
 pyzo/util/interpreters/__init__.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyzo/util/interpreters/__init__.py b/pyzo/util/interpreters/__init__.py
index 79c8f5a..e5dff93 100644
--- a/pyzo/util/interpreters/__init__.py
+++ b/pyzo/util/interpreters/__init__.py
@@ -70,7 +70,8 @@ def _get_interpreters_win():
         found.append(v.installPath() )
     
     # Check common locations
-    for rootname in ['c:/', 'C:/program files/', 'C:/program files (x86)/']:
+    for rootname in ['c:/', 'C:/program files/', 'C:/program files (x86)/', '~']:
+        rootname = os.path.expanduser(rootname)
         if not os.path.isdir(rootname):
             continue
         for dname in os.listdir(rootname):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyzo.git



More information about the debian-science-commits mailing list