How to get the home directory in Python?
Answers
Answered by
0
To get homedir u can use this
pathlib.Path.home():
from pathlib import Path
home=str(Path.home())
Similar questions
Science,
5 months ago
Computer Science,
5 months ago
Chemistry,
10 months ago
Math,
10 months ago
Business Studies,
11 months ago
Biology,
11 months ago