pathlib path of current file

Solutions on MaxInterview for pathlib path of current file by the best coders in the world

showing results for - "pathlib path of current file"
Vincenzo
10 Mar 2018
1from pathlib import Path
2
3BASE_DIR = Path(__file__).resolve().parent.parent
4TEMPLATES_DIR = BASE_DIR.joinpath('templates')
5