Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getosxPort(self):
- try:
- path=os.path.join('/Applications','Ace Stream.app','Contents','Resources','wineprefix','drive_c','users','IGHOR','Application Data','ACEStream','engine')
- pfile= os.path.join( path,'acestream.port')
- gf = open(pfile, 'r')
- aceport=int(gf.read())
- except:
- return False
- self.log.out('get aceport - %s'%aceport)
- return aceport
- def startosx(self):
- self.log.out('try to start OSX engine')
- import subprocess
- comd = [os.path.join('/Applications','Ace Stream.app','Contents','Resources','Wine.bundle','Contents','Resources','bin','wine'),os.path.join('/Applications','Ace Stream.app','Contents','Resources','wineprefix','drive_c','users','IGHOR','Application Data','ACEStream','engine','ace_engine.exe')]
- print comd
- try:
- self.proc = subprocess.Popen(comd,shell=False)
- except:
- self.sm('Not Installed')
- self.log.out('Not Installed')
- self.progress.update(0,'AceStream not installed','')
- return False
- self.log.out('Engine starting')
- return True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement