Answers for "python get absolute path of project root"

2

Python project root dir

import os
ROOT_DIR = os.path.abspath(os.curdir)
Posted by: Guest on April-28-2021
0

python absolute path from projectr

ROOT_DIR = os.path.dirname(os.path.abspath("top_level_file.txt"))
Posted by: Guest on March-01-2021

Code answers related to "python get absolute path of project root"

Browse Popular Code Answers by Language