Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Launch Options
#1
I'm not sure if this is more a Python question or a Linux question, but here goes: I have a script file tied to the key combo Ctrl+Alt+P to navigate to my script folder and run Python. That part works.
#!/bin/bash
mate-terminal --working-directory="/home/flexico/Documents/Python_Scripts" --title="Python" --command python
However, I also want it to run a few lines of Python script, like import some standard libraries so I don't have to re-type them in every time. How do I do that? I tried adjusting the program like so:
#!/bin/bash
mate-terminal --working-directory="/home/flexico/Documents/Python_Scripts" --title="Python" --command "python /home/flexico/python_start.py"
But it just opens a blank Terminal window with a flashing cursor, which disappears when I click on it.
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
  Launch Python IDLE Shell from terminal Pavel_47 5 1,265 Feb-17-2023, 02:53 PM
Last Post: Pavel_47
  Performance options for sys.stdout.writelines dgrunwal 11 3,164 Aug-23-2022, 10:32 PM
Last Post: Pedroski55
  Launch Windows Application OEMS1 0 2,132 Mar-26-2021, 07:42 PM
Last Post: OEMS1
Photo Python won`t launch error newbieee 0 1,781 Feb-02-2021, 11:51 PM
Last Post: newbieee
  Can argparse support undocumented options? pjfarley3 3 2,227 Aug-14-2020, 06:13 AM
Last Post: pjfarley3
  Launch another python command without waiting for a return. SpongeB0B 13 10,998 Jun-18-2020, 10:45 AM
Last Post: Yoriz
  win32 API: Launch Application to RDP session from background process python script rangeshgupta 0 2,165 May-28-2020, 09:41 PM
Last Post: rangeshgupta
  Help with options raiden 1 1,943 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,684 Aug-02-2019, 10:31 PM
Last Post: scidam
  error message on program launch DJPY1175 0 1,756 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