I started playing with python a few weeks ago (comming from c#). I am really enjoying some of its features, but cannot solve a problem with screen reader output modules like UniversalSpeech or Tolk.
My code works fine when I execute it from the same folder, that is, opening the command line and going to my code path, then runing the script like: D:, cd myCodePath, py test.py.
However, when I try to run my code from another location like: py D:\myCodePath\test.py, I get always the same error (using both universalSpeech or Tolk), something like:
Traceback (most recent call last):
File "d:\myCodePath\test.py", line 5, in <module>
File "d:\myCodePath\UniversalSpeech.py", line 2, in <module>
__uspeech = __ctypes.cdll.UniversalSpeech
File "C:\Python37\lib\ctypes\__init__.py", line 426, in __getattr__
dll = self._dlltype(name)
File "C:\Python37\lib\ctypes\__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] specified module could not be found
How could I fix that? Probably I am doing something wrong but no idea
Thanks in advance!