0

Say in my code, I need to use a 3rd-party package from Pypi which has a module somemodule. On the other hand, I have a user-defined module somemodule from which I need to import some functions. Is it possible to import from both modules in a single file?

Below is the sample code that illustrates the question. Is this even achievable?

import somemodule # a 3rd-party module

from userdefined.somemodule import somefunc# user defined module

somemodule.run()
somefunc()
fhcat
  • 971
  • 2
  • 9
  • 28

0 Answers0