4 ms·
This is flawed. I can have physics.core module and chemistry.core module. But if I add both into sys.path then import .core from physics directory, guess whi
by akasakahakada 3y ago
This is flawed. I can have
physics.core module and
chemistry.core module.
But if I add both into sys.path then import .core from physics directory, guess which core will be imported?
- stop50 3y agoYou usually get an import error. To import physics.core with an relative import you have to be physics/__init__.py