Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find in which directory my python code is running

import os
dir_where_my_py_code_is_running = os.getcwd()
print(dir_where_my_py_code_is_running)    #prints the directory


 
PREVIOUS NEXT
Tagged: #find #directory #python #code #running
ADD COMMENT
Topic
Name
7+2 =