Skip to content

Commit

Permalink
Use os.path
Browse files Browse the repository at this point in the history
  • Loading branch information
sthiele committed Feb 6, 2023
1 parent e1bff5d commit 3ba77e8
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 @@ -23,15 +23,14 @@
from meneco import utils
from meneco.config import get_config_options

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):
network_f = utils.to_file(network)
Expand Down

0 comments on commit 3ba77e8

Please sign in to comment.