You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application that is meant to be extensible by users. At runtime the application looks for the presence of a Python module in a specific user directory, and if the module exists, it appends the module's path to sys.path and then imports it. This works well when the application is installed via pip, but it doesn't work when it is frozen with cx_Freeze. Is there a workaround, or dynamically importing modules at runtime from a frozen application is simply not possible? The dynamic import code I'm using is the following:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an application that is meant to be extensible by users. At runtime the application looks for the presence of a Python module in a specific user directory, and if the module exists, it appends the module's path to
sys.path
and then imports it. This works well when the application is installed via pip, but it doesn't work when it is frozen with cx_Freeze. Is there a workaround, or dynamically importing modules at runtime from a frozen application is simply not possible? The dynamic import code I'm using is the following:Beta Was this translation helpful? Give feedback.
All reactions