Skip to content

Commit

Permalink
walruses are mammals
Browse files Browse the repository at this point in the history
  • Loading branch information
jjshoots committed Apr 23, 2024
1 parent fa484d6 commit e80d2a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/roms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def get_all_rom_ids() -> list[str]:
def get_rom_path(name: str) -> Path | None:
"""Expects name as a snake_case name, returns the full path of the .bin file if it's valid, otherwise returns None."""
# grab the roms_dir environment
if os.environ.get("ALE_ROMS_DIR"):
roms_dir = Path(os.environ["ALE_ROMS_DIR"])
if (_path := os.environ.get("ALE_ROMS_DIR")):
roms_dir = Path(_path)
print(f"Loading roms from {roms_dir.absolute()}...")
else:
roms_dir = Path(__file__).parent
Expand Down

0 comments on commit e80d2a4

Please sign in to comment.