pathlib path of current file

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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