File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 19
19
from internetarchive .search import Search
20
20
from internetarchive .session import ArchiveSession
21
21
22
- # Set up current working directory (CWD) and root_path
22
+ # Set up current working directory (CWD)
23
23
CWD = os .path .dirname (os .path .abspath (__file__ ))
24
- root_path = os .path .dirname (CWD )
25
24
26
25
# Gets Date then Create File in CWD with Date Attached
27
26
today = dt .datetime .today ()
@@ -48,7 +47,7 @@ def get_license_list():
48
47
"""
49
48
# Read license data from file
50
49
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
52
51
)
53
52
# Define regex pattern to extract license types
54
53
license_pattern = r"((?:[^/]+/){2}(?:[^/]+)).*"
You can’t perform that action at this time.
0 commit comments