Skip to content

Commit 8f418cc

Browse files
committed
root_path removed from internetarchive
1 parent 3ac4081 commit 8f418cc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internetarchive/internetarchive_scratcher.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
from internetarchive.search import Search
2020
from internetarchive.session import ArchiveSession
2121

22-
# Set up current working directory (CWD) and root_path
22+
# Set up current working directory (CWD)
2323
CWD = os.path.dirname(os.path.abspath(__file__))
24-
root_path = os.path.dirname(CWD)
2524

2625
# Gets Date then Create File in CWD with Date Attached
2726
today = dt.datetime.today()
@@ -48,7 +47,7 @@ def get_license_list():
4847
"""
4948
# Read license data from file
5049
cc_license_data = pd.read_csv(
51-
f"{root_path}/legal-tool-paths.txt", header=None
50+
f"{os.path.dirname(CWD)}/legal-tool-paths.txt", header=None
5251
)
5352
# Define regex pattern to extract license types
5453
license_pattern = r"((?:[^/]+/){2}(?:[^/]+)).*"

0 commit comments

Comments
 (0)