If I don't have pysvd.py in the current working directory, I get errors when trying to use gdb_svd. I've solved this problem in two ways:
- set
PYTHONPATH in gdb's environment, so gdb_svd.py knows where to find pysvd.py.
- change the
sys.path.append('.') line in gdb_svd.py to point to the directory where pysvd.py is located.
Neither of these is really ideal - is consolidating both into a single source file the only way to solve the problem?
If I don't have pysvd.py in the current working directory, I get errors when trying to use gdb_svd. I've solved this problem in two ways:
PYTHONPATHin gdb's environment, sogdb_svd.pyknows where to findpysvd.py.sys.path.append('.')line ingdb_svd.pyto point to the directory wherepysvd.pyis located.Neither of these is really ideal - is consolidating both into a single source file the only way to solve the problem?