Open
Description
Maybe we could improve the readability on occasions where we obtain the parent path using:
BASEDIR = os.path.dirname(os.path.abspath(__file__))
BASEDIR = os.path.abspath(os.path.join(BASEDIR, os.path.pardir))
Based on the discussion in #4289 and looking on how the os.path
module is used in the project, one possible alternative could be:
BASEDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
The above is also used in selftests/check_tmp_dirs
Metadata
Metadata
Assignees
Type
Projects
Status
Long Term (Next Q) Backlog