The current directory is the directory that contains the main application script. If you want to avoid name collisions in this directory, do not put any modules in it.
Use a namespace instead. Create a package with a unique name in the main script directory and import all of this. The main script should be very simple and contain nothing more:
if __name__ == '__main__': from mypackage import myapp myapp.run()
All modules within the package must also use from import to access other modules within the package. For example, myapp.py may contain:
from mypackage import profile
source share