I have David Eppstein’s PADS library of Python Algorithms and Data Structures in a subdirectory next to my Python script:
- my-script.py
- PADS
- __init__.py
- Automata.py
- Util.py
- ...
How can I use the RegExp
class in my script? It’s defined in PADS/Automata.py
but when I use import PADS.Automata
, I get an error from a line inside that file:
File ".../PADS/Automata.py", line 9, in <module>
from Util import arbitrary_item
ModuleNotFoundError: No module named 'Util'