Skip to content

Commit

Permalink
Merge pull request graphnet-team#370 from MortenHolmRep/root_dir
Browse files Browse the repository at this point in the history
Implemented root dir variable for graphnet
  • Loading branch information
MortenHolmRep committed Dec 8, 2022
2 parents 8d27c35 + dc64713 commit da612e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/graphnet/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import os.path

TEST_DATA_DIR = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", "..", "test_data")
GRAPHNET_ROOT_DIR = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", "..")
)

TEST_DATA_DIR = os.path.abspath(os.path.join(GRAPHNET_ROOT_DIR, "test_data"))

0 comments on commit da612e4

Please sign in to comment.