2004-10-26, 03:27
okay, i need access to a samba share within a python script. i know this is a topic which has been discussed before -- without really answering the question, otherwise i wouldn't be posting again. rather, it's just demonstrated that there's a broader need for this functionality.
i've read darkie's reply here, but there's no useful description of the existing script or library that he's referring to. darkie or andrew, if either of you are reading this, do you know which script actually contains a working method?
based on other stuff i've seen in python forums (not xbmc-specific forums), i developed a script that temporarily mounts a smb drive using command-line instructions, but when i got it to xbmc i discovered that os.system(command) has been disabled (or...not ported). that makes sense, i suppose, since there isn't a real os running underneath the interpreter, but do we have access to anything like the os.system commands?
here's what i'm actually trying to do:
i've read darkie's reply here, but there's no useful description of the existing script or library that he's referring to. darkie or andrew, if either of you are reading this, do you know which script actually contains a working method?
based on other stuff i've seen in python forums (not xbmc-specific forums), i developed a script that temporarily mounts a smb drive using command-line instructions, but when i got it to xbmc i discovered that os.system(command) has been disabled (or...not ported). that makes sense, i suppose, since there isn't a real os running underneath the interpreter, but do we have access to anything like the os.system commands?
here's what i'm actually trying to do:
Quote:cmdcreatedrive = "net use r: \\\\computer\\share"
os.system(cmdcreatedrive)