not updating imported module

RoboFont Forums Bugs not updating imported module

This topic contains 1 reply, has 2 voices, and was last updated by  frederik 8 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4303

    joanca
    Participant

    I’m importing a module from a script. If I modify this module and run the script again (reloading), it keeps using the previous version. It doesn’t updates the new changes.
    This doesn’t happen with the same script and module in the same place running from Textmate.
    I guess it’s a bug… Sometimes it’s not easy to decide which Forum post to : )
    Thanks!

    #4305

    frederik
    Keymaster

    python creates .pyc files on the fly during runtime only if the compiled version is not existing.

    You can force to reload a module by:

    import myModule
    reload(myModule)
    

    good luck

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.