diff --git a/dominoes/fileManagement.py b/dominoes/fileManagement.py index 4869983..6064cd1 100644 --- a/dominoes/fileManagement.py +++ b/dominoes/fileManagement.py @@ -1,3 +1,5 @@ +import sys +import os from pathlib import Path @@ -23,3 +25,12 @@ def figsPath(): def netPath(): return codePath() / "experiments" / "savedNetworks" + + +def local_repo_path(): + """ + method for returning local repo path + (assumes that this module is one below the dominoes package in the main repo folder) + """ + repo_folder = os.path.dirname(os.path.abspath(__file__)) + "/.." + return repo_folder