Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Launch Options
#6
(Dec-06-2016, 11:18 AM)Flexico Wrote: Got answered here: http://www.linuxquestions.org/questions/...ost5638499

Your final solution in the link does not actually correspond to the question you asked here, but if your happy, we're happy.  btw, there is no "double click" to run a script in linux, that's Windows. If you have the proper "shebang" line at the beginning of you script, for example:

#!/usr/bin/env python
Note in the above example, this will invoke the default Python interpreter (in linux, usually python 2)
you simply type "./your_script.py

As metulburr pointed out, unless you add something to keep the terminal open, python will run the script and the close the terminal (unless of course, your running the script from within an existing terminal.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
Python Launch Options - by Flexico - Dec-06-2016, 02:28 AM
RE: Python Launch Options - by metulburr - Dec-06-2016, 02:35 AM
RE: Python Launch Options - by Flexico - Dec-06-2016, 02:46 AM
RE: Python Launch Options - by metulburr - Dec-06-2016, 08:21 AM
RE: Python Launch Options - by Flexico - Dec-06-2016, 11:18 AM
RE: Python Launch Options - by sparkz_alot - Dec-06-2016, 01:38 PM
RE: Python Launch Options - by Flexico - Dec-07-2016, 06:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  argparser not showing all options bigal 1 240 May-22-2024, 02:54 AM
Last Post: deanhystad
  Error on first Python launch garryp4 5 647 May-07-2024, 03:56 PM
Last Post: deanhystad
  Launch Python IDLE Shell from terminal Pavel_47 5 1,397 Feb-17-2023, 02:53 PM
Last Post: Pavel_47
  Launch Windows Application OEMS1 0 2,233 Mar-26-2021, 07:42 PM
Last Post: OEMS1
Photo Python won`t launch error newbieee 0 1,833 Feb-02-2021, 11:51 PM
Last Post: newbieee
  Launch another python command without waiting for a return. SpongeB0B 13 11,375 Jun-18-2020, 10:45 AM
Last Post: Yoriz
  win32 API: Launch Application to RDP session from background process python script rangeshgupta 0 2,232 May-28-2020, 09:41 PM
Last Post: rangeshgupta
  Help with options raiden 1 2,002 Aug-30-2019, 12:57 AM
Last Post: scidam
  how to specify options or tickle python to output points swept by the optimization? bsmile 3 2,766 Aug-02-2019, 10:31 PM
Last Post: scidam
  error message on program launch DJPY1175 0 1,806 Jun-10-2019, 08:40 AM
Last Post: DJPY1175

Forum Jump:

User Panel Messages

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