Skip to content

Commit

Permalink
Merge pull request #93 from ldeo-glaciology/update_packge_build_ymls
Browse files Browse the repository at this point in the history
Update packge build ymls
  • Loading branch information
jkingslake authored Jan 17, 2025
2 parents 4109da5 + f618ade commit 7ff36e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
9 changes: 3 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "bas-apres"]
path = bas-apres
url = [email protected]:jkingslake/bas-apres.git
[submodule "submodules_dir"]
path = submodules_dir
url = [email protected]:jkingslake/bas-apres.git
[submodule "xapres/bas-apres"]
path = xapres/bas-apres
url = [email protected]:jkingslake/bas-apres.git
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
graft bas-apres
graft xapres
prune docs
prune notebooks
Expand Down
1 change: 0 additions & 1 deletion bas-apres
Submodule bas-apres deleted from befd43
11 changes: 5 additions & 6 deletions xapres/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@

# add git submodule to path to allow imports to work
submodule_name = 'bas-apres'
(parent_folder_path, current_dir) = os.path.split(os.path.dirname(__file__))
sys.path.append(os.path.join(parent_folder_path, submodule_name))
#(parent_folder_path, current_dir) = os.path.split(os.path.dirname(__file__))
#sys.path.append(os.path.join(parent_folder_path, submodule_name))
#print(f"adding {(os.path.join(parent_folder_path, submodule_name))} to path in init")

#print(os.path.dirname(__file__))
#print( f"adding {os.path.join(os.path.dirname(__file__), submodule_name)} to path in init")
sys.path.append(os.path.join(os.path.dirname(__file__), submodule_name))

#output = f"adding {(os.path.join(parent_folder_path, submodule_name))} to path in init"

#with open("adding_to_path.txt", "w") as file:
# print(output, file=file)

from . import load
from . import utils
Expand Down

0 comments on commit 7ff36e9

Please sign in to comment.