Menu

import file

Help
Ge Mengano
2019-02-08
2019-02-09
  • Ge Mengano

    Ge Mengano - 2019-02-08

    If I have

    # a.py
    import b
    f()

    # b.py
    def f():
    ...

    If I change the f definition and then call the a.py script then a.py does not know about the changes.
    So if I change f() I have to restart Notepad++ in order to use the updated b.py script via the a.py script.
    Is there an alternative to reset notepad?

     

    Last edit: Ge Mengano 2019-02-09
  • Ge Mengano

    Ge Mengano - 2019-02-09

    Sorry, I have found the solution searching the forum:

    reload(b)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.