0% found this document useful (0 votes)
35 views

Python Scripting

Python scripts allow you to get the current working directory. You import the os module and use os.getcwd() to assign the current working directory path to a variable called cwd, which in this example outputs 'C:\Users\bpgn9266\AppData\Local\Programs\Python\Python37-32'.

Uploaded by

Napster King
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Python Scripting

Python scripts allow you to get the current working directory. You import the os module and use os.getcwd() to assign the current working directory path to a variable called cwd, which in this example outputs 'C:\Users\bpgn9266\AppData\Local\Programs\Python\Python37-32'.

Uploaded by

Napster King
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Python important scripts:

To get the current working directory use

##########

import os
cwd = os.getcwd()

Output : C:\Users\bpgn9266\AppData\Local\Programs\Python\Python37-32

##########

You might also like