Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#Import os module import os #set up test workspace with permissions in editor value = os.getenv("WORKSPACE") #Change directory and print current working directory os.chdir(value) print("Current directory:" , os.getcwd()) #Create a new directory os.mkdir("mydir") #Change current working directory os.chdir("mydir") #Print new current working directory print("Current directory now:" , os.getcwd())
Current directory: /tmp/ff575972-3154-4a2c-b6a9-8ffaa6351f80
Current directory now: /tmp/ff575972-3154-4a2c-b6a9-8ffaa6351f80/mydir