python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
ModuleNotFoundError with importlib.import_module for submodule
(my english is really bad sorry)
I write a OOP code and I want a main file who import (auto with importlib) some "templates" to execute. Every templates have a "main file" and othe...
n0ne
Votes: 0
Answers: 1
Importing AST modification
I'm attempting dynamic rewrite of pywin32 win32com.client module prior to import, the below seems to work - but I'm not happy with the 6 lines of code for importing (after the last comment). Can anyo...
Christopher Horler
Votes: 0
Answers: 1
Understanding Python's `importlib.reload`
I'm trying to understand how the importlib.reload method actually behaves.
I'll give a boiled down example
import importlib
import sys
from pathlib import Path
import gc
def write_dummy_class(return_...
Steven Van Ingelgem
Votes: 0
Answers: 1
How to detect method signatures of imported python modules
I have a python app which can load and run extensions. It looks like this:
import importlib, sys
sys.path.append('.')
module = importlib.import_module( 'extension' )
Extension = getattr(module, 'Ex...
Stewart
Votes: 0
Answers: 0