Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pathlib path of current file

from pathlib import Path

BASE_DIR = Path(__file__).resolve().parent.parent
TEMPLATES_DIR = BASE_DIR.joinpath('templates')
Source by treyhunner.com #
 
PREVIOUS NEXT
Tagged: #pathlib #path #current #file
ADD COMMENT
Topic
Name
9+4 =