0

How do I write a code equivalent to

from mymodule import *

for a module in a given full path?

My question is similar to this question: How do I import a module given the full path? , except I want to "import * "

Kuzenbo
  • 229
  • 4
  • 9

1 Answers1

2

I think the easiest way is to add your full path to sys.path:

import sys

sys.path.append('<path_to_folder_with_your_module>')

from mymodule import *
Yevhen Kuzmovych
  • 10,940
  • 7
  • 28
  • 48