Answers for "pathlib files in directory"

0

pathlib path of current file

from pathlib import Path

BASE_DIR = Path(__file__).resolve().parent.parent
TEMPLATES_DIR = BASE_DIR.joinpath('templates')
Posted by: Guest on April-25-2020
0

finding path of a module in python

from inspect import getmodule
print(getmodule(os))
Posted by: Guest on July-27-2021

Code answers related to "pathlib files in directory"

Python Answers by Framework

Browse Popular Code Answers by Language