python gio waiting for async operations to be done
Posted
by pygabriel
on Stack Overflow
See other posts from Stack Overflow
or by pygabriel
Published on 2010-04-20T16:41:53Z
Indexed on
2010/04/21
2:33 UTC
Read the original article
Hit count: 336
I have to mount a WebDav location and wait for the operation to be finished before to proceed (it's a script). So I'm using the library in this way:
location = gio.File("dav://server.bb")
location.mount_enclosing_volume(*args,**kw) # The setup is not much relevant
location.get_path() # Returns None because it's not yet mounted since the call is async
How to wait until the device is mounted?
© Stack Overflow or respective owner