I’m trying to create a multifile explorer for Panda3D (i’ll keep you updated about it ) to make easier multifile manipulations (add files, folders, encrypt, add certificate, etc.).
I need to get the content of multifiles. To do so, I mount the file on the virtual file system and then I use the
os.listdir() function via the
It worked well when I did this on a single
The problem is that the project structure of the archiver is more complex (it’s not that much ):
mfExplorer - src/ | --------- MfHandler.py # It's where I mount and check file's content | --------- Some other GUI and utilities modules | --------- __init__.py - main.py
In this case, in the MfHandler.py file, I’m able to mount the file (from arbitrary path), load models contained in the multifile, but I cannot call the
os.listdir() function that throws a
FileNotFoundError error (it seems that it’s calling the builtin python
os module because here is the output if I do
<module 'os' from 'C:\\Users\\valentin\\AppData\\Local\\Programs\\Python\\Python39\\lib\\os.py'>, but I’m using the panda’s version in all my modules [I did check everything]).
That error occurs whenever I call that function in another module than the main one.
Here is a simplified example to reproduce the issue: https://www.martinscoding.xvelta.com/p3dissues/multifile_error_osdir.zip
Do you have any idea ?
Any help would be appreciated !
Thanks in advance for your help !