![]() I think their solution involved packaging a Terminal settings file in their app. You might want to grab it and look at how they did it and maybe post an Answer to your own question. I haven't looked at it in a few years, but it may still work that way. The only time I've seen this done was the Ixia Chariot endpoint for OS X. app but actually runs in a Terminal window instead of being its own real app. I personally don't like anything that presents itself as a. If you just want Python code and no bash code, change the shebang at the top to #!/usr/bin/python (or wherever Python lives on your system). ![]() If you want to execute bash commands before Python, you can put both in the same file but wrap the Python code in a bash exec statement. Then you can double-click on the script file itself, no need for a. The easiest way to make a double-clickable script that runs in a new Terminal window is to end the file name with ".command".
0 Comments
Leave a Reply. |