Custom modules in p3d file

I have the following directory structure in my project:

src/
  main.py
  game/
    __init__.py
    scene.py
    scenes/
      __init__.py
      test.py

In main.py, I have this line near the top:

from game.scenes.test import Test

That works when I do: python -c “import main”

However, once I use packp3d to create the .p3d file and run the p3d via panda3d runtime, I get this error:

...
  File "VFSImporter", line 153, in load_module
  File "C:\Users\Josh\Dev\blah\src\main.py", line 6, in <module>
    from game.scenes.test import Test
ImportError: No module named scenes.test
Failure on startup.

Why does this code work outside of the p3d? What can I do to fix this?

Could you give the output of “multify -tvf yourfile.p3d” ?

Here is the output of multify -tvf:

         136   23%    Aug 08 01:13 game.pyo
         136   23%    Aug 08 01:13 game/__init__.pyo
        4307   57%    Aug 08 01:13 game/background.pyo
        2329   55%    Aug 08 01:13 game/menu.pyo
        1239   60%    Aug 08 01:13 game/scene.pyo
         143   22%    Aug 08 01:13 game/scenes/__init__.pyo
        1012   53%    Aug 08 01:13 game/scenes/test.pyo
         938   43%    Aug 08 01:13 game/util.pyo
          45 worse    Aug 08 01:13 game_config.prc
        2667   54%    Aug 08 01:13 main.pyo
        1069   48%    Aug 08 01:13 models/plane.bam
         318          Aug 08 01:13 p3d_info.xml