Importing module from network

后端 未结 6 1609
南笙
南笙 2020-12-21 04:22

Is there a way to get python to read modules from a network?

We have many machines and it would be a too much effort to update each machine manually each time I cha

6条回答
  •  忘掉有多难
    2020-12-21 04:42

    While it's a little pathological to want to import modules over the network, it is actually possible. Take a look at the source for zipimport to get an idea of how it can be done.

提交回复
热议问题