Skip to content

Instantly share code, notes, and snippets.

@zynaxsoft
Created February 10, 2020 00:46
Show Gist options
  • Save zynaxsoft/1bbbba724b415ed7d0fe5724100268ff to your computer and use it in GitHub Desktop.
Save zynaxsoft/1bbbba724b415ed7d0fe5724100268ff to your computer and use it in GitHub Desktop.
python package directory definition
import os
PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.abspath(os.path.join(PACKAGE_DIR, '..'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment