Answers for "get default path python"

9

get path to current directory python

import os
os.path.abspath(os.getcwd())
Posted by: Guest on September-16-2020
3

get python directiory

import sys
print('\n'.join(sys.path))
Posted by: Guest on May-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language