reloading module which has been imported to another module

后端 未结 6 1043
难免孤独
难免孤独 2021-01-01 19:32

Let\'s face it, the whole business of reloading python code after changing it is a mess. I figured out awhile back that calling import at the in

6条回答
  •  独厮守ぢ
    2021-01-01 19:51

    Here is a recursive reload function that you could use (credit to @Matthew): https://stackoverflow.com/a/17194836/1020625

提交回复
热议问题