Skip to content

Commit

Permalink
testing4
Browse files Browse the repository at this point in the history
  • Loading branch information
juztamau5 committed Mar 10, 2024
1 parent 2ee44f3 commit 265e409
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openai/retro/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,11 @@ def get_file_path(game, file, inttype=Integrations.DEFAULT):
print(f"inttype: {inttype}")
base = path()
print(f"base: {base}")
print(f"inttype.paths: {inttype.paths}")
for t in inttype.paths:
possible_path = os.path.join(base, t, game, file)
print(f"possible_path: {possible_path}")
print(f"- possible_path: {possible_path}")
print(f"- os.path.exists(possible_path): {os.path.exists(possible_path)}")
if os.path.exists(possible_path):
return possible_path

Expand All @@ -325,6 +327,7 @@ def get_romfile_path(game, inttype=Integrations.DEFAULT):
for extension in EMU_EXTENSIONS.keys():
possible_path = get_file_path(game, "rom" + extension, inttype)
print(f"possible_path: {possible_path}")
print(f"os.path.exists(possible_path): {os.path.exists(possible_path)}")
if possible_path:
return possible_path

Expand Down

0 comments on commit 265e409

Please sign in to comment.