Quantcast
Channel: Python scripts flash and fail on doubleclick - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2

Python scripts flash and fail on doubleclick

$
0
0

When I try to run any Python script by double-clicking it on my desktop or in Caja, a terminal window comes up for a split second (so execution does start) and then disappears, without the script running. All my scripts start with the #!/usr/bin/env python3 shebang line and Python 3 is installed. I can execute them with no problems from a Python or IPython session. What could be preventing them from running on doubleclick?


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>