Skip to content

Commit

Permalink
Use os.path
Browse files Browse the repository at this point in the history
  • Loading branch information
sthiele committed Jan 25, 2023
1 parent eefe219 commit 4411451
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions meneco/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@

from meneco import utils

root = __file__.rsplit("/", 1)[0]
unproducible_prg = root + "/encodings/unproducible_targets.lp"
ireaction_prg = root + "/encodings/ireactions.lp"
minimal_completion_prg = root + "/encodings/card_min_completions_all_targets.lp"
heuristic_prg = root + "/encodings/heuristic.lp"
minimal_completion_wb_prg = (
root + "/encodings/card_min_completions_all_targets_with_bounds.lp"
)
completion_prg = root + "/encodings/completions_all_targets.lp"
root = os.path.dirname(__file__)
encodings = os.path.join(root,"encodings")
unproducible_prg = os.path.join(encodings,"unproducible_targets.lp")
ireaction_prg = os.path.join(encodings, "ireactions.lp")
minimal_completion_prg = os.path.join(encodings, "card_min_completions_all_targets.lp")
heuristic_prg = os.path.join(encodings, "heuristic.lp")
minimal_completion_wb_prg = os.path.join(encodings, "card_min_completions_all_targets_with_bounds.lp")
completion_prg = os.path.join(encodings, "completions_all_targets.lp")


def get_unproducible(network, seeds, targets):
Expand Down

0 comments on commit 4411451

Please sign in to comment.