Skip to content

Commit 68e7056

Browse files
committed
Update ptah to GDP examples
1 parent 28a365d commit 68e7056

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pyomo/contrib/satsolver/tests/test_satsolver.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
# This software is distributed under the 3-clause BSD License.
1010
# ___________________________________________________________________________
1111

12-
from os.path import abspath, dirname, join, normpath
12+
from os.path import join
1313

1414
import pyomo.common.unittest as unittest
1515

16-
from pyomo.common.fileutils import import_file
16+
from pyomo.common.fileutils import import_file, PYOMO_ROOT_DIR
1717
from pyomo.contrib.satsolver.satsolver import satisfiable, z3_available
1818
from pyomo.core.base.set_types import PositiveIntegers, NonNegativeReals, Binary
1919
from pyomo.environ import (
@@ -33,8 +33,7 @@
3333
)
3434
from pyomo.gdp import Disjunct, Disjunction
3535

36-
currdir = dirname(abspath(__file__))
37-
exdir = normpath(join(currdir, '..', '..', '..', 'examples', 'gdp'))
36+
exdir = join(PYOMO_ROOT_DIR, 'examples', 'gdp')
3837

3938

4039
@unittest.skipUnless(z3_available, "Z3 SAT solver is not available.")

0 commit comments

Comments
 (0)