golemfactory / yapapi

Python high-level API for Golem.
https://yapapi.readthedocs.io/en/stable/
GNU Lesser General Public License v3.0
48 stars 23 forks source link

Remove usage of shebang in examples #1104

Open approxit opened 1 year ago

approxit commented 1 year ago

While working on #1086, my changes on windows machine implicitly changed file permissions for one of example python scripts. Goth tests are running on linux and are executing example code via:

$ ./example.py

which checks executable permission on file. Implicit switch from 755 to 644 dropped that permission, and test was failing.

We should not be prone to this kind of quirks, and there is no actual need to keep using shebangs. In fact using it expects python to be available in particular way, which may differ vastly from user to user.

Todo