python - The imported packages in source codes are as submodules of my package when using setup.py -


i got problem when using setup.py. instances maybe clear:

suppose have a.py in source folder module. import os , implement function named 'b' in a.py. after ruunning python setup.py install, should able import a , call a.b. can call a.os in case.

why happen? a.os should not appear, right? how solve issue? looking help!

it happens because imported os in a.py, , imported a.py module. may either redesign a class or overwrite os function in a.py. hope helps.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -