[Tutor] Remote module loading

Peter Otten __peter__ at web.de
Thu Sep 7 14:12:54 EDT 2017


devN wrote:
> Is there any way to load the module from remote just as
> simple as import statement (without using urllib or wget piped to python)?
> This could also mean does PYTHONPATH support http/ftp?

While there are hooks to do everything you can imagine

https://docs.python.org/dev/library/importlib.html

that's not very accessible to newbies. 

Why don't you make the module available through the file system? Think NFS 
or SMB or WebDAV...



More information about the Tutor mailing list