Skip to content

Instantly share code, notes, and snippets.

@CodyKochmann
Created May 8, 2015 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodyKochmann/e126c9e28f3c20558cf6 to your computer and use it in GitHub Desktop.
Save CodyKochmann/e126c9e28f3c20558cf6 to your computer and use it in GitHub Desktop.
returns the current directory on any unix system
def current_dir():
# returns a unix current directory
# By: Cody Kochmann
from os import path
return(path.dirname(path.realpath(__file__)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment