In software/chipwhisperer/tests/tools_for_tests.py, several paths are defined as relative paths to CHIPWHISPERER_DIR. The base directory, however, is incorrectly obtained as relative to a filename, thus resulting in incorrect unix paths, e.g.: /home/user/git/cw5dev/software/chipwhisperer/__init__.py/../../...
A more reliable and correct way to obtain the path would be to use dirname instead, and apply abspath as the last step (after joining parent dir):
In
software/chipwhisperer/tests/tools_for_tests.py
, several paths are defined as relative paths toCHIPWHISPERER_DIR
. The base directory, however, is incorrectly obtained as relative to a filename, thus resulting in incorrect unix paths, e.g.:/home/user/git/cw5dev/software/chipwhisperer/__init__.py/../../..
.A more reliable and correct way to obtain the path would be to use dirname instead, and apply abspath as the last step (after joining parent dir):