예제 #1
0
	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()
예제 #2
0
 def open(self):
     if self.opened:
         return
     dllpath = os.path.join(smBasePath(), "backend", "canonpsrec")
     self.sdk = psrec.SDK(dllpath=dllpath)
     self.opened = True
예제 #3
0
 def open(self):
     if self.opened:
         return
     dllpath = os.path.join(smBasePath(), 'backend', 'canonpsrec')
     self.sdk = psrec.SDK(dllpath=dllpath)
     self.opened = True