Embarcadero / DelphiFMX4Python

Python GUI module powered by Delphi's FireMonkey framework. Supporting Windows, MacOS, Linux, and Android GUI development.
Other
298 stars 55 forks source link

Linux Issues with sample scripts #69

Closed mvdw73 closed 1 year ago

mvdw73 commented 1 year ago

Trying to run the sample scripts from the command line gives an error "from: command not found". This is because running from the command line attempts to run the file as a shell script - linux ignores the extension (so-called "magic number), and instead relies on a shebang comment at the head of the script to determine the correct interpreter to run the script with.

This can be fixed by adding a line at the top of every sample as follows:

!/usr/bin/env python3

I'm not putting in a PR because the samples also segfault for me under linux (see comment in issue #40); when that is fixed I will make a PR to fix this issue.

mvdw73 commented 1 year ago

I've made a PR to fix this problem. It should be open for review.

Priyatham10 commented 1 year ago

Sure @mvdw73 . Thank you. Will take a look into it.