I want to disable using 'import' with names of files from some folders. In my application I have folders named 'plugins' and 'drivers'. I want to user which will using my applicantion have no acces to files in folder 'drivers' from level of code (to no notify this fils after 'import')

You should take a look at the sys module.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.