Skip to content

Instantly share code, notes, and snippets.

@bencord0
Last active October 10, 2015 15:47
Show Gist options
  • Save bencord0/3713329 to your computer and use it in GitHub Desktop.
Save bencord0/3713329 to your computer and use it in GitHub Desktop.
Find the directory that this file is in.
import os
current_dir = os.path.dirname(os.path.abspath(__file__))
CURRENT_DIR=$(cd -P $(dirname $0); pwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment