472,353 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 1870
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BuddyWork | last post by:
Hello, I need to know how I can check if the drives on my machine are network drives and local drives via the .Net framework. For example my...
6
by: Default User | last post by:
Hi How can i look for network share folders and copy a text file to it? I've been looking into how i can do this in the documention but with no...
2
by: Pradeep Sundaram(MSFT) | last post by:
Hello, I want to enumerate all the Drives on the web server using ASP.NET (C#) Writing code like this works when i use local host but when i try to...
11
by: Andre | last post by:
Hi, I have ASP.NET application running on standalone (not part of the domain) Windows 2003. I use forms authentication for my application. The...
1
by: Sparky | last post by:
Hi I was wondering if someone can please enlighten me as to the best and most approved way to connect and disconnect network drives in vb.net. ...
1
by: Dennis | last post by:
I use the below code to get the Network Places items. However, this requires "Late Binding". I read that you can avoid late binding by adding a...
0
by: Dennis | last post by:
I have tried to use the IWshRuntimeLibrary and ManagementObjectSearcher("SELECT * FROM Win32_LogicalDisk") to get all Logical Drives, Mapped...
2
by: =?Utf-8?B?ZGdjb29wZXI=?= | last post by:
When I get a list of drives using the Directory.GetLogicalDrives(), it gives me all drives including disconnected network drives. When I attempt to...
4
by: Luc The Perverse | last post by:
Hi - I have very little C# programming experience. I am making a software product which calls for an interface almost identical to Windows...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.