python absolute path from projectr code example Example: python absolute path from projectr ROOT_DIR = os.path.dirname(os.path.abspath("top_level_file.txt"))