From ffbc385bfd55590824903aa1638cfc6c4748c696 Mon Sep 17 00:00:00 2001 From: Ian Zimmerman Date: Sun, 21 Oct 2018 14:05:34 -0700 Subject: [PATCH] Just use ALL site.PREFIXES, though I've never seen more than one --- pysollib/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysollib/util.py b/pysollib/util.py index bc74fcb0..bd70d8e0 100644 --- a/pysollib/util.py +++ b/pysollib/util.py @@ -104,8 +104,8 @@ class DataLoader: # itz 2018-10-21 in case of venv installation # (or even homedir installation), path[0] will be quite wrong. # Just directly use the location where setup.py puts the data. - if site.PREFIXES: - path.append(os.path.join(site.PREFIXES[0], 'share', 'PySolFC')) + for pref in site.PREFIXES: + path.append(os.path.join(pref, 'share', 'PySolFC')) # check path for valid directories self.path = [] for p in path: