Skip to content

Instantly share code, notes, and snippets.

@sergeyprokudin
Created December 4, 2018 10:42
Show Gist options
  • Save sergeyprokudin/ccafeece74ec36fe9937c8b193d2ed49 to your computer and use it in GitHub Desktop.
Save sergeyprokudin/ccafeece74ec36fe9937c8b193d2ed49 to your computer and use it in GitHub Desktop.
Commands to get script directory
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