Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. def getosxPort(self):
  2. try:
  3. path=os.path.join('/Applications','Ace Stream.app','Contents','Resources','wineprefix','drive_c','users','IGHOR','Application Data','ACEStream','engine')
  4. pfile= os.path.join( path,'acestream.port')
  5. gf = open(pfile, 'r')
  6. aceport=int(gf.read())
  7. except:
  8. return False
  9. self.log.out('get aceport - %s'%aceport)
  10. return aceport
  11.  
  12. def startosx(self):
  13. self.log.out('try to start OSX engine')
  14. import subprocess
  15. 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')]
  16. print comd
  17. try:
  18. self.proc = subprocess.Popen(comd,shell=False)
  19. except:
  20. self.sm('Not Installed')
  21. self.log.out('Not Installed')
  22. self.progress.update(0,'AceStream not installed','')
  23. return False
  24. self.log.out('Engine starting')
  25. return True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement