def get_cwd(filename = None):
    cwd = (get_cabal_project_dir_of_file(filename) or os.path.dirname(filename)) if filename else os.getcwd()
    return cwd
Get cwd for filename: cabal project path, file path or os.getcwd()
dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/sublime_haskell_common.py/get_cwd