0

I am trying to do from /path/module import function, but my path to the module is stored inside of a variable, and I can't change that. How can I work around this then and get this import to work? It is imperative that I import only the function.

I would like something like

from path_variable import function

where path_variable is the path to my python script that I am extracting the function from.

segfault
  • 43
  • 1
  • 10

0 Answers0