Importing module from network

后端 未结 6 1604
南笙
南笙 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:40

    Mount your network location into your file-system and add that path to your PYTHONPATH. That way, Python on your local machine will be able to see the modules which are present in the remote location. You cannot directly import from modules remotely, like specifying a js file in html.

提交回复
热议问题