Am I allowed to have a directory named "import" containing Python code? Or will the import team not be able to analyze it as a result? Is there any way around this?
You can use the built-in function __import__that accepts any string. So you can write:
__import__
__import__('keyword.submodule')
, Python Python. , Python.
Or will the import team not be able to analyze it as a result?
It really won't work.
Source: https://habr.com/ru/post/1740977/More articles:Is there any extra overhead for finding a column in a DataTable by name and not by index? - c #Visual Studio 2010 MVC 2 (project project imported) - publish crash - System.Web.Routing.RouteValueDictionary exists in both - visual-studio-2010Inspirational web experiments and technical demos - htmlParsing Unicode XML with Python SAX in App Engine - google-app-engineWindows Forms Dead. WPF Long Life - winformsQueries stuck in "copy to tmp table" - mysqlHTML rendering (bitmap conversion) - htmlHow to find the MAC address of a computer using jQuery - jqueryHow to create a user registration form using datastore - Google appengine? - javaОткуда появился этот класс? - javaAll Articles