Skip to content

Commit

Permalink
correct package env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhales committed Apr 9, 2024
1 parent a3398d2 commit db7c69d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geoglows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import geoglows.streams
import geoglows.tables

from ._constants import METADATA_TABLE_LOCAL_PATH as METADATA_TABLE_PATH
from ._constants import METADATA_TABLE_PATH

__all__ = [
'bias', 'plots', 'data', 'analyze', 'streams', 'tables',
Expand Down
5 changes: 4 additions & 1 deletion geoglows/_constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import os

METADATA_TABLE_LOCAL_PATH = os.path.join(os.path.dirname(__file__), 'data', 'metadata-tables.parquet')
METADATA_TABLE_PATH = os.getenv(
'PYGEOGLOWS_METADATA_TABLE_PATH',
os.path.join(os.path.dirname(__file__), 'data', 'metadata-tables.parquet')
)

0 comments on commit db7c69d

Please sign in to comment.