Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
python get location of script 1

python get location of script

April 25, 2022 by Anurag batra
os.getcwd()

Here is what the above code is Doing:
1. It’s creating a variable called ‘cwd’ and setting it equal to the current working directory.
2. It’s printing the value of ‘cwd’ to the console.
3. It’s printing the type of ‘cwd’ to the console.

Categories Python Examples
Post navigation
count the number of rows in a database table in Django
column standardization pandas
© MyEduKit - 2022 . All Rights Reserved.