We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac4081 commit d49b590Copy full SHA for d49b590
internetarchive/internetarchive_scratcher.py
@@ -19,9 +19,8 @@
19
from internetarchive.search import Search
20
from internetarchive.session import ArchiveSession
21
22
-# Set up current working directory (CWD) and root_path
+# Set up current working directory (CWD)
23
CWD = os.path.dirname(os.path.abspath(__file__))
24
-root_path = os.path.dirname(CWD)
25
26
# Gets Date then Create File in CWD with Date Attached
27
today = dt.datetime.today()
@@ -48,7 +47,7 @@ def get_license_list():
48
47
"""
49
# Read license data from file
50
cc_license_data = pd.read_csv(
51
- f"{root_path}/legal-tool-paths.txt", header=None
+ f"{os.path.dirname(CWD)}/legal-tool-paths.txt", header=None
52
)
53
# Define regex pattern to extract license types
54
license_pattern = r"((?:[^/]+/){2}(?:[^/]+)).*"
0 commit comments