Jump to content

Import fails on updating changes in nested import python module


Recommended Posts

 

  1. Routinely I import (level 1) a py module (level 2) that, in turn,
    imports another module (level 3).
  2. I've been making changes for weeks to the level 3 module and those
    were reflected in VW until now.
  3. Suddenly VW2023 stopped to detect changes to the
    level 3 module; I tried to fix resetting script's paths with no success.
  4. The solution was to use the importlib module in the level 2 script
    to force the reloading of the level 3 module: import utilerias
     
import importlib
import utilerias
importlib.reload(utilerias)


 

Hope it helps.

Edited by Walter Rojas
Link to comment
  • Walter Rojas changed the title to Import fails on updating changes in nested import python module

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...