def get_cabal_project_dir_of_file(filename):
    return get_cabal_project_dir_and_name_of_file(filename)[0]
Based on the precision, convert the period to a precise
dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/sublime_haskell_common.py/get_cabal_project_dir_of_file--crossover with--dataset/ETHPy150Open beetbox/beets/beets/dbcore/query.py/Period.open_right_endpoint