|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hi there,
Can anyone tell me how to open (launch) a file? For example, let's say I have a .bat file within the same directory as my .py file. What am i supposed to do? Thanks. Berk Can Celebisoy |
|
#2
|
||||
|
||||
|
I'm assuming your on windows since you mentioned batch files for some reason.. Anyway you should be able to execute a Python program/file simply by double clicking on it!
Mark. |
|
#3
|
|||
|
|||
|
I'm guessing you want to open other files, not execute the python one.
Anyway, if you can execute the other file, such as a bat-file, you should be able to execute them from within a python script with "os.system('path-to-file')". If it's a regular file, you'd need some other utility to open it with the application of your choice. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Launching files with Python |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|