How is the quakelib package structured in this software?

  • Context: Python 
  • Thread starter Thread starter ShayanJ
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 1K views
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
 
Physics news on Phys.org
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?
 
  • Like
Likes   Reactions: ShayanJ