Skip to content

Commit 24d1de2

Browse files
committed
debug
1 parent 8aef3de commit 24d1de2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/pownet/core/data_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def load_transmission_data(self) -> None:
7474
print(get_database_dir())
7575
cur_path = os.path.dirname(os.path.abspath(__file__))
7676
print(cur_path)
77-
src_path = os.path.dirname(cur_path)
77+
src_path = os.path.dirname(os.path.dirname(cur_path))
7878
print(os.listdir(src_path))
7979
print("End of debugging")
8080

src/pownet/folder_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def get_home_dir() -> str:
3535

3636

3737
def get_database_dir() -> str:
38-
return os.path.join(get_pownet_dir(), "src", "database")
38+
return os.path.join(
39+
os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "src", "database"
40+
)
3941

4042

4143
def get_test_dir() -> str:

0 commit comments

Comments
 (0)