Created
December 4, 2018 10:42
-
-
Save sergeyprokudin/ccafeece74ec36fe9937c8b193d2ed49 to your computer and use it in GitHub Desktop.
Commands to get script directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) | |
PROJECT_DIR = os.path.dirname(SCRIPT_DIR) | |
LOG_DIR = os.path.join(PROJECT_DIR, 'logs') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment