About 806,000 results
Open links in new tab
  1. How to execute a file within the Python interpreter?

    Jun 22, 2009 · I'm trying to execute a file with Python commands from within the interpreter. I'm trying to use variables and settings from that file, not to invoke a separate process.

  2. How can I make one python file run another? - Stack Overflow

    How can I make one python file to run another? For example I have two .py files. I want one file to be run, and then have it run the other .py file.

  3. windows - Python - How do you run a .py file? - Stack Overflow

    Feb 29, 2012 · Check that python's bin folder is in your PATH, or you can do c:\python23\bin\python <filename.py>. Python is an interpretive language and so you need the interpretor to run your file, …

  4. How to run a .py file in windows command line? - Stack Overflow

    Nov 5, 2013 · I have written a simple python program using IDLE to run it from command line. I don't have permission to save .py file in python directory (C:\program files\python33) so I saved it to …

  5. python - How do I call a function from another .py file ... - Stack ...

    function(a, b) Note that file is one of Python's core modules, so I suggest you change the filename of file.py to something else. Note that if you're trying to import functions from a.py to a file called b.py, …

  6. Run a Python script from another Python script, passing in arguments

    Mar 27, 2019 · Closed 10 years ago. I want to run a Python script from another Python script. I want to pass variables like I would using the command line. For example, I would run my first script that …

  7. What is the difference between "Run Python File" vs "Run Python File in ...

    Mar 29, 2025 · Run Python File What it does: Executes your Python script in the VS Code Output panel (a separate area that displays program output) Run Python File in Terminal Executes the Python …

  8. python - Run function from the command line - Stack Overflow

    This avoids the weird .pyc copy function that crops up every time you run python -c etc. Maybe not as convenient as a single-command, but a good quick fix to text a file from the command line, and …

  9. Key shortcut for running python file in VS code - Stack Overflow

    Apr 27, 2022 · In VS Code, I'm writing python code. I was wondering if there is a key shortcut to run the file instead of pressing the run button in the right top corner of the screen constantly.

  10. Creating a BAT file for python script - Stack Overflow

    Jan 1, 2011 · How can I create a simple BAT file that will run my python script located at C:\\somescript.py?