Created
May 8, 2015 02:25
-
-
Save CodyKochmann/e126c9e28f3c20558cf6 to your computer and use it in GitHub Desktop.
returns the current directory on any unix system
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
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