Skip to content

Commit

Permalink
Added FOON-API as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpaulius committed Apr 19, 2023
1 parent 6abcdec commit 240da9b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions FOON_to_PDDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@

last_updated = '25th October, 2022'

try:
import FOON_graph_analyser as fga
except ImportError:
print(" -- ERROR: Missing 'FOON_graph_analyser.py'!")
print("\t-- Download here: https://github.com/davidpaulius/foon_api")
sys.exit()
#end
path_to_FOON_code = './foon_api/'

# NOTE: we need to import some files from the FOON API directory:
if path_to_FOON_code not in sys.path:
try:
import FOON_graph_analyzer as fga
except ImportError:
print(" -- ERROR: Missing 'FOON_graph_analyzer.py'!")
print("\t-- Download here: https://bitbucket.org/davidpaulius/foon_api/src/master/")
sys.exit()
#end
#endif

# -- variables for the FOON subgraph file name and a kitchen items file (optional - defaults to creating one with starting nodes)
FOON_subgraph_file = None
Expand Down

0 comments on commit 240da9b

Please sign in to comment.