@@ -0,0 +1,41 | |||||
|
1 | import os, sys | |||
|
2 | import getopt | |||
|
3 | path = os.path.split(os.getcwd())[0] | |||
|
4 | #path="C://Users//alex//workspace//gui_14_03_13" | |||
|
5 | sys.path.append(path) | |||
|
6 | ||||
|
7 | from controller import * | |||
|
8 | ||||
|
9 | class scProcessController(): | |||
|
10 | def __init__(self): | |||
|
11 | print "ESTOY EJECUTANDO EL NUEVO PROCESO PERO APARENTEMENTE NO QUIERE" | |||
|
12 | self.setfilename() | |||
|
13 | self.operation() | |||
|
14 | ||||
|
15 | def setfilename(self): | |||
|
16 | arglist= '' | |||
|
17 | longarglist=['filename='] | |||
|
18 | optlist,args=getopt.getopt(sys.argv[1:],arglist,longarglist) | |||
|
19 | for opt in optlist: | |||
|
20 | if opt[0]== '--filename': | |||
|
21 | self.filename = opt[1] | |||
|
22 | ||||
|
23 | def operation(self): | |||
|
24 | print 'inicia operation' | |||
|
25 | controllerObj = Project() | |||
|
26 | print "Leyendo el archivo XML" | |||
|
27 | #self.filename="C://Users//alex//schain_workspace//Alexander1.xml" | |||
|
28 | controllerObj.readXml(self.filename) | |||
|
29 | #controllerObj.printattr() | |||
|
30 | ||||
|
31 | controllerObj.createObjects() | |||
|
32 | controllerObj.connectObjects() | |||
|
33 | controllerObj.run() | |||
|
34 | ||||
|
35 | ||||
|
36 | def main(): | |||
|
37 | a=scProcessController() | |||
|
38 | ||||
|
39 | ||||
|
40 | if __name__ == "__main__": | |||
|
41 | main() No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now