Example #1
0
 def _connectToWinIDEA(self):
     # sp.Popen(['/home/isystem/bin/9_17_109_0_89947/winidea.sh', self.workspaceFileName])
     cmgr = ic.ConnectionMgr()
     cmgr.connectMRU(self.workspaceFileName)
     self.debugCtrl = ic.CDebugFacade(cmgr)
     self.ideCtrl = ic.CIDEController(cmgr)
     self.loaderCtrl = ic.CLoaderController(cmgr)
Example #2
0
def options(ctx):
    global cmgr
    global ideCtrl
    cmgr = ctx.obj.cmgr
    ctx.obj.connect()
    ideCtrl = ic.CIDEController(cmgr)
    pass
Example #3
0
File: files.py Project: hacki11/wic
def files(ctx):
    global cmgr
    global loadCtrl
    global ideCtrl
    cmgr = ctx.obj.cmgr
    ctx.obj.connect()
    loadCtrl = ic.CLoaderController(cmgr)
    ideCtrl = ic.CIDEController(cmgr)
    pass
import gnatpython.fileutils as fu
import isystem.connect as ic

cmgr = ic.ConnectionMgr()
cmgr.connectMRU('')
ideController = ic.CIDEController(cmgr)


def winIDEA_version():
    return ideController.getWinIDEAVersion().toString()


def firmware_revision():
    firmwareDateInstalledUrl = '/iOPEN/SystemConfig.Firmware.DateInstalled'
    firmwareDateInstalled = ideController.getOptionInt(
        firmwareDateInstalledUrl)
    year = firmwareDateInstalled >> 16
    month = (firmwareDateInstalled & 0xFF00) >> 8
    date = (firmwareDateInstalled & 0xFF)

    return '{}{:02d}{:02d}'.format(year, month, date)


def probe_model():
    # No way to retrieve this automatically. This is what we have:
    return 'iSystem iC5000'


def workspace_file():
    return ' '.join(fu.find(root="altrun", pattern="justrun.xjrf"))
Example #5
0
 def _connectToWinIDEA(self):
     cmgr = ic.ConnectionMgr()
     cmgr.connectMRU(self.workspaceFileName)
     self.debugCtrl = ic.CDebugFacade(cmgr)
     self.ideCtrl = ic.CIDEController(cmgr)
     self.loaderCtrl = ic.CLoaderController(cmgr)