Python Forum
Execute script in IDLE with parameters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Execute script in IDLE with parameters
#11
(Mar-13-2020, 08:47 AM)Pavel_47 Wrote: (without modifying knn.py)
It's not without modfying knn.py. you need to include these lines in knn.py, the only question being where in the file.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#12
Pavel_47 - We can make it easy for you.
show your code, we will show you how it should be modified.
You cannot pass arguments to IDLE, it will not accept them.
What you can do as Buran and myself have been trying to advise, it to emulate passing arguments within the script.
show your code.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to receive two passed cmdline parameters and access them inside a Python script? pstein 2 340 Feb-17-2024, 12:29 PM
Last Post: deanhystad
  execute python script guy7200 1 1,595 Oct-25-2021, 09:55 PM
Last Post: Axel_Erfurt
  Possible to execute a python script before log off/shutdown with input commands? Kaltex 1 2,262 May-18-2021, 06:31 AM
Last Post: Skaperen
  Automating to run python script 100 times by changing parameters pmt 1 2,600 Dec-29-2020, 10:31 AM
Last Post: andydoc
  Execute DBCC CHECKDB from python script susja 1 2,102 Aug-12-2020, 02:09 AM
Last Post: susja
  Execute full script samuelbachorik 0 1,538 Aug-06-2020, 08:09 PM
Last Post: samuelbachorik
  Trying to write and execute first Python script garvind25 3 2,894 May-23-2020, 07:36 PM
Last Post: garvind25
  How to write a script to execute a program need passing additional input? larkypython 2 2,525 Nov-23-2019, 04:38 AM
Last Post: larkypython
  Pyinstaller with Sys.Argv[] - “Failed to Execute Script”? ironfelix717 0 5,305 Aug-07-2019, 02:29 PM
Last Post: ironfelix717
  Help with PyInstaller + Script "Failed to Execute Script" ironfelix717 2 9,551 Jul-31-2019, 02:18 PM
Last Post: ironfelix717

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020