Mapping network drive on Linux

Robert Kern rkern at ucsd.edu
Wed Aug 31 15:22:10 EDT 2005


Thierry Lam wrote:
> On windows, if I want to map a network drive to a local drive on my
> computer, I do the following:
> 
> data = {
> 	'remote' : '\\blah\data',
> 	'local' : 'Z:'
>        }
>        win32net.NetUseAdd(None, 1, data)
> 
> How am I supposed to do similar thing on Linux?

You would run the appropriate, external programs using os.system() or
subprocess. As for what those might be, you will have to read your
distribution's documentation or google around for HOWTOs.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Python-list mailing list