SmartCAMPUSZCU / KETCube-fw

KETCube firmware
Other
1 stars 1 forks source link

Unreliable PATH detection in createModule.h #26

Closed belohoub closed 5 years ago

belohoub commented 5 years ago

PATH to createModule.h is obtained by:

os.path.dirname(sys.argv[0])

This leads to a situation, where the PATH content is user run-convention dependent.

This works fine:

chmod +x createModule.py
./createModule.py

This leads to empty string in PATH:

python3 createModule.py