How is the quakelib package structured in this software?

  • Topic: Python 
  • Thread starter ShayanJ
  • Start date
3 replies · 1K views · last reply
Science Advisor
Insights Author
Messages
2,802
Reaction score
605
I'm trying to understand the structure of this software. If you look at the file vq/PyVQ/pyvq/pyvq.py, you can see that a package named quakelib is imported. I call it a package because I couldn't find a quakelib.py file, and there was just a quakelib directory. But a directory should contain a __init__.py file directly under it to be a package. Instead, quakelib has a __init__.py inside its python subdirectory. So how is this a package?
Another problem is that the quakelib directory is not in the same directory as the pyvq.py that imports it. So how can it import quakelib?
Thanks
 
Yeah, I've read python docs, not that particular page though. But it didn't help. I also couldn't find the corresponding page for python 2.7.
Could you take a look at the link I gave in the OP?