Skip to content

Commit

Permalink
update fileManagement for extra path support
Browse files Browse the repository at this point in the history
  • Loading branch information
landoskape committed Apr 5, 2024
1 parent 9251a27 commit 4f544b4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dominoes/fileManagement.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys
import os
from pathlib import Path


Expand All @@ -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

0 comments on commit 4f544b4

Please sign in to comment.