open .py in linux.

jaytee01

Member
Sep 29, 2017
261
110
Hi All,
I am trying to open a .py in Mint (screen shot attached) any help would be appreciated. Screenshot at 2019-08-02 11-59-32.png
 

jaytee01

Member
Sep 29, 2017
261
110
That is what I do normally but sometimes the .sh does not work so thought there may be a way to open in python.
cd ~/games/PineFalls-0.5-pc
chmod u+x ./PineFalls.sh
./PineFalls.sh
 

jaytee01

Member
Sep 29, 2017
261
110
Hi,
I did what you said but still could not open the .sh int
a terminal so downloaded Wine and that works fine for me The game I had the problem with is Devious discoveries. Thanks for the help...

cd ~/games/PineFalls-0.5-pc
chmod u+x ./PineFalls.sh
./PineFalls.sh
If you want to launch a "Python 2" file, you usually do:
Code:
cd ~/games/PineFalls-0.5-pc
python ./PineFalls.py
but I don't think it can work in this case, because Mint lacks some Python libraries that are shipped with the game (they are inside the "lib" folder).

Just execute the .sh in the console, read the errors, see also what log.txt and traceback.txt say.