CodyKochmann
5/8/2015 - 2:25 AM

returns the current directory on any unix system

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__)))