Closed rzbrk closed 3 years ago
shall we then add chmod +x ./CalliopEO.py
in the setup script?
Do we really need this? The permissions are usually also stored in the repo. For example, this works in my case for setup.sh and testing.sh. Do you have to set the executable flag for every file?
I have to do this for the .sh files. The .py script executes with python3 CalliopEO.py
without having chmod +x
. So I have to do this for the setup script and then for the testfile (where I think it is okay do do not have this executeable by default)
But I download the Zip file, unpack it localy and then upload everything via ssh. I'll test what happens when I upload the Zip and unpack it on the pi.
The test files itself run without being executeable
yes, the testcase files do not need the executable flag, only testing.sh in the main directory.
maybe, by copying the individual files via ssh the flag gets lost. but zip also stores them.
yes, using the zip works without chmoding anything
Add shebang
#!/usr/bin/env python3
and makechmod +x CalliopEO.py
. Then, the script can be executed with./CalliopEO.py
.