Closed TimidRobot closed 8 months ago
put shared code in a shared library
Potential new shared module:
# Standard library import datetime import os.path def setup(): # Datetime datetime_today = datetime.datetime.today() # Paths path_work_dir = os.path.dirname( os.path.abspath(os.path.realpath(__file__)) ) path_repo_root = os.path.dirname( os.path.abspath(os.path.realpath(path_work_dir)) ) path_dotenv = os.path.abspath( os.path.realpath(os.path.join(path_work_dir, ".env")) ) return path_repo_root, path_work_dir, path_dotenv, datetime_today
used in scripts (assumes above is named quantify):
quantify
# First-party/Local import quantify # ... PATH_REPO_ROOT, PATH_WORK_DIR, PATH_DOTENV, DATETIME_TODAY = quantify.setup() load_dotenv(PATH_DOTENV)
@nox1134 please comment on this issue so i can assign it to you
@IamMQaisar please comment on this issue so i can assign it to you
Yes! @TimidRobot
Hi @TimidRobot!
Problem
put shared code in a shared library
Description
Potential new shared module:
used in scripts (assumes above is named
quantify
):