7import isystem.connect
as ic
14 connMgr = ic.ConnectionMgr()
15 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
17 docCtrl = ic.CDocumentController(connMgr,
'CORE0/startup.c',
"r")
19 print(
"Saving selected document ('CORE0/startup.c')...")
22 print(
"Saving selected document ('CORE0/startup.c') copy: 'CORE0/startup_copy.c'...")
24 docCtrl.saveCopy(
'CORE0/startup_copy.c')
25 except Warning
as wrn:
26 print(
"File existed and was overwritten!")
28 print(
"Saving selected document ('CORE0/startup.c') with a "
29 "new name: 'CORE0/startup_saveAs.c'...")
31 docCtrl.saveAs(
'CORE0/startup_saveAs.c')
32 except AttributeError
as exc:
33 print(
"Could not save: " + str(exc))
39if __name__ ==
"__main__":