lucaskopelman lucaskopelman
  • 18-08-2019
  • Computers and Technology
contestada

How do I change directories in python to run a file?

How do I change directories in python to run a file class=

Respuesta :

BaileyOrion
BaileyOrion BaileyOrion
  • 18-08-2019

write the following at the top of your program:

import os

then write in your code:

os.chdir(path)

and where I've written path, write where you want to change to

Answer Link

Otras preguntas

Puritan life was strict Comparative
PLEASE HELP!!!! ASAP
Why are all public service agencies required to use accounting standards for government?
If the number of condos in Indiana was the same as those in Texas (with respect to population), how many would we expect in Indiana? Location Number of high-ris
what is the solution​
-1.2w=9//////.........................
Written Response Question for "O Captain, My Captain!" on Commonlit: Considering the events occurring at the time this poem was written, how does the author use
A package of 11 sliced oranges cost $6.27. How much would a package with 19 sliced oranges cost at the same price per slice?
As tensions were building against the Spanish in Cuba, President McKinley was faced with strong ___________________, or aggressive nationalism, within the Repub
how does a digital computer process data? as a string of binary digits called bits as number written in the decimal number system as a sequence of instructio