Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

os module

>>> import os
>>> os.getcwd()      # Return the current working directory
'C:Python39'
>>> os.chdir('/server/accesslogs')   # Change current working directory
>>> os.system('mkdir today')   # Run the command mkdir in the system shell
0
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #os #module
ADD COMMENT
Topic
Name
9+7 =