Find the answer to your Linux question:
Results 1 to 1 of 1
My first post here and first time sharing a script. Not sure if there's already one out there somewhere but I made a little python launcher script. It checks your ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    2

    Python Launcher


    My first post here and first time sharing a script.

    Not sure if there's already one out there somewhere but I made a little python launcher script.

    It checks your script to see if you're import GTK or pyGTK and if you are it assumes the app has a GUI and opens it in python, if you aren't importing either of them it loads the python script in terminal.

    Please let me know if there are any problems

    Edit: Can somebody move this thread please? I was originally going to ask a question(figured it out on my own) I left the page up for a while and then posted forgetting to change the forum.

    And here's how to use it:
    1) Edit the properties of a python script
    2) Go to the "open with" tab
    3) click Add and enter this in the custom command box:
    Code:
    python '/path/to/pyLauncher.py'
    change '/path/to/pyLauncher.py' to the path to the pyLauncher script and leave the quotes
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •