mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Just use ALL site.PREFIXES, though I've never seen more than one
This commit is contained in:
parent
b488cbceef
commit
ffbc385bfd
1 changed files with 2 additions and 2 deletions
|
@ -104,8 +104,8 @@ class DataLoader:
|
||||||
# itz 2018-10-21 in case of venv installation
|
# itz 2018-10-21 in case of venv installation
|
||||||
# (or even homedir installation), path[0] will be quite wrong.
|
# (or even homedir installation), path[0] will be quite wrong.
|
||||||
# Just directly use the location where setup.py puts the data.
|
# Just directly use the location where setup.py puts the data.
|
||||||
if site.PREFIXES:
|
for pref in site.PREFIXES:
|
||||||
path.append(os.path.join(site.PREFIXES[0], 'share', 'PySolFC'))
|
path.append(os.path.join(pref, 'share', 'PySolFC'))
|
||||||
# check path for valid directories
|
# check path for valid directories
|
||||||
self.path = []
|
self.path = []
|
||||||
for p in path:
|
for p in path:
|
||||||
|
|
Loading…
Add table
Reference in a new issue