From 4abfc80027a4bd75eac0519a44f6a3e56682c515 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 24 Nov 2021 19:28:36 -0500 Subject: [PATCH] [+] Add SRC_DIR --- src/constants.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/constants.py b/src/constants.py index 12a43e0..c0e05e8 100644 --- a/src/constants.py +++ b/src/constants.py @@ -1,7 +1,13 @@ +import os + # Constants (The instructors said that we can use global constants here: # https://piazza.com/class/ksovzjrlsye72f?cid=1664 # They should not end with "/" +from pathlib import Path + DATA_DIR = './data' TWEETS_DIR = f'{DATA_DIR}/twitter/user-tweets' USER_DIR = f'{DATA_DIR}/twitter/user' REPORT_DIR = './report' +# Sources directory. This may be different from the data directory if the running +SRC_DIR = str(Path(os.path.realpath(__file__)).parent)