def open(self): if self.opened: return if platform.system().lower() == 'windows': from .remote import client self.api = client.GPhotoClient() self.opened = True self.api.open(workingDir=smDataPath(),basePath=os.path.join(smBasePath(),'backend','libgphoto2')) else: from . import api self.api = api.API() self.opened = True self.api.open()
def open(self): if self.opened: return dllpath = os.path.join(smBasePath(), "backend", "canonpsrec") self.sdk = psrec.SDK(dllpath=dllpath) self.opened = True
def open(self): if self.opened: return dllpath = os.path.join(smBasePath(), 'backend', 'canonpsrec') self.sdk = psrec.SDK(dllpath=dllpath) self.opened = True