1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Compare commits

..

No commits in common. "490f8f2f25ca24ac1a6ca4c6c16770737a477ba5" and "204bc6b5fa0d348bea9dae7976b8df4cf75d057b" have entirely different histories.

3 changed files with 4 additions and 17 deletions

View file

@ -68,7 +68,7 @@ pretest:
python scripts/gen_individual_importing_tests.py
TEST_ENV_PATH = "`pwd`:`pwd`/tests/lib"
TEST_ENV = PYTHONPATH="$$PYTHONPATH:"$(TEST_ENV_PATH) PERL5LIB="$$PERL5LIB:"$(TEST_ENV_PATH)
TEST_ENV = PYTHONPATH=$(TEST_ENV_PATH) PERL5LIB=$(TEST_ENV_PATH)
TEST_FILES = tests/style/*.t tests/unit-generated/*.py tests/individually-importing/*.py
define RUN_TESTS

View file

@ -32,7 +32,7 @@ PACKAGE = 'PySolFC'
TITLE = 'PySol'
PACKAGE_URL = 'http://pysolfc.sourceforge.net/'
VERSION_TUPLE = (2, 6, 1)
VERSION_TUPLE = (2, 5, 5)
VERSION = '.'.join(map(str, VERSION_TUPLE))
# Tk windowing system (auto set up in init.py)

View file

@ -23,13 +23,7 @@
# imports
import os
try:
import site
except Exception:
class Dummy:
def __init__(self):
self.PREFIXES = []
site = Dummy()
import site
import sys
# PySol imports
@ -106,17 +100,10 @@ class DataLoader:
path.append(os.path.join(sys.path[0], "pysollib", "data"))
# from settings.py
path.extend(DATA_DIRS)
# py2app compatibility, see
# https://github.com/shlomif/PySolFC/issues/100
_prefixes = []
try:
_prefixes = site.PREFIXES
except Exception:
_prefixes = []
# 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.
for pref in _prefixes:
for pref in site.PREFIXES:
path.append(os.path.join(pref, 'share', 'PySolFC'))
# check path for valid directories
self.path = []