469,327 Members | 1,226 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

mounting network drives in macosx

Joe
Is there a way to mount a network share from within Python on MacOSX?
I imagine it would be the same as for Unix, but I don't know how to do
it for Unix either. I have searched python.org and googled a lot
without success. Any help here is greatly appreciated. Thanks all!
Jul 18 '05 #1
2 1766
It depends if you want to mount via NFS, SAMBA (windoze like), or other.
Once you figure that out, google for python os commands,
that may get you started.
there may be seperate modules for macosx.

"Joe" <he*******@hotmail.com> wrote in message
news:56**************************@posting.google.c om...
Is there a way to mount a network share from within Python on MacOSX?
I imagine it would be the same as for Unix, but I don't know how to do
it for Unix either. I have searched python.org and googled a lot
without success. Any help here is greatly appreciated. Thanks all!

Jul 18 '05 #2
If it's the same network share every time, you can just make an alias
to it (manually) from the finder, and then os.system('open myalias')
whenever you want it to be mounted. Of course, this will open a window
in the finder, but it is a quick&dirty way to do it.

The real question is why you're trying to do it, and in what kind of situation.

On 2004-03-03 12:26:21 -0500, "bobb" <ra*****@hotmail.com> said:
It depends if you want to mount via NFS, SAMBA (windoze like), or other.
Once you figure that out, google for python os commands,
that may get you started.
there may be seperate modules for macosx.

"Joe" <he*******@hotmail.com> wrote in message
news:56**************************@posting.google.c om...
Is there a way to mount a network share from within Python on MacOSX?
I imagine it would be the same as for Unix, but I don't know how to do
it for Unix either. I have searched python.org and googled a lot
without success. Any help here is greatly appreciated. Thanks all!

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by BuddyWork | last post: by
6 posts views Thread by Default User | last post: by
2 posts views Thread by Pradeep Sundaram(MSFT) | last post: by
1 post views Thread by Dennis | last post: by
4 posts views Thread by Luc The Perverse | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.