source: tmcsimulator/trunk/src/python/unifiedlogger/wing_project.wpr @ 454

Revision 454, 23.4 KB checked in by jdalbey, 7 years ago (diff)

Logging Service: add missing file error check. Cad watcher modified to read log file path from config file.

Line 
1#!wing
2#!version=7.0
3##################################################################
4# Wing project file                                              #
5##################################################################
6[project attributes]
7debug.launch-configs = (2,
8                        {'launch-Dap54cn2qAN7AXZm': ({},
9        {'buildcmd': ('project',
10                      None),
11         'env': ('project',
12                 [u'']),
13         'name': 'launchme',
14         'pyexec': ('project',
15                    u''),
16         'pypath': ('project',
17                    []),
18         'pyrunargs': ('project',
19                       '-u'),
20         'runargs': u'',
21         'rundir': ('custom',
22                    u'/home/jdalbey/Dropbox/TMCrepo/trunk')})})
23proj.directory-list = [{'dirloc': loc('.'),
24                        'excludes': (),
25                        'filter': u'*',
26                        'include_hidden': False,
27                        'recursive': True,
28                        'watch_for_changes': True}]
29proj.file-type = 'normal'
30proj.home-dir = loc('../..')
31proj.launch-config = {loc('__main__.py'): ('custom',
32        (u'',
33         'launch-Dap54cn2qAN7AXZm'))}
34proj.main-file = loc('__main__.py')
35[user attributes]
36debug.show-args-dialog = {loc('__main__.py'): False}
37edit.file-encoding = {loc('get_revision'): 'UTF-8'}
38guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
39                            'windows': [{'name': '0BtsNVOAornvyNAPNOxHAmuDFR'\
40        'v7Dw8l',
41        'size-state': 'maximized',
42        'type': 'dock',
43        'view': {'area': 'tall',
44                 'constraint': None,
45                 'current_pages': [4],
46                 'full-screen': False,
47                 'notebook_display': 'normal',
48                 'notebook_percent': 0.3850187265917603,
49                 'override_title': None,
50                 'pagelist': [('source-assistant',
51                               'tall',
52                               2,
53                               {}),
54                              ('debug-stack',
55                               'tall',
56                               1,
57                               {}),
58                              ('browser',
59                               'tall',
60                               0,
61                               {}),
62                              ('indent',
63                               'tall',
64                               2,
65                               {}),
66                              ('debug-io',
67                               'tall',
68                               0,
69                               {}),
70                              ('project',
71                               'tall',
72                               0,
73                               {'tree-state': {'file-sort-method': 'by name',
74        'list-files-first': False,
75        'tree-states': {'deep': {'expanded-nodes': [(0,),
76        (0,
77         0)],
78                                 'selected-nodes': [(0,
79        0,
80        0)],
81                                 'top-node': (0,)}},
82        'tree-style': 'deep'}})],
83                 'primary_view_state': {'area': 'wide',
84        'constraint': None,
85        'current_pages': [3,
86                          1],
87        'notebook_display': 'normal',
88        'notebook_percent': 0.30000000000000004,
89        'override_title': None,
90        'pagelist': [('batch-search',
91                      'wide',
92                      0,
93                      {'fScope': {'fFileSetName': 'All Source Files',
94                                  'fLocation': None,
95                                  'fRecursive': True,
96                                  'fType': 'documentation'},
97                       'fSearchSpec': {'fEndPos': None,
98                                       'fIncludeLinenos': True,
99                                       'fInterpretBackslashes': False,
100                                       'fMatchCase': False,
101                                       'fOmitBinary': True,
102                                       'fRegexFlags': 42,
103                                       'fReplaceText': '',
104                                       'fReverse': False,
105                                       'fSearchText': u'default directory policy',
106                                       'fStartPos': 0,
107                                       'fStyle': 'text',
108                                       'fWholeWords': False,
109                                       'fWrap': True},
110                       'fUIOptions': {'fAutoBackground': True,
111                                      'fFilePrefix': 'short-file',
112                                      'fFindAfterReplace': True,
113                                      'fInSelection': False,
114                                      'fIncremental': True,
115                                      'fReplaceOnDisk': False,
116                                      'fShowFirstMatch': False,
117                                      'fShowLineno': True,
118                                      'fShowReplaceWidgets': False},
119                       'replace-entry-expanded': False,
120                       'search-entry-expanded': False}),
121                     ('interactive-search',
122                      'wide',
123                      0,
124                      {'fScope': {'fFileSetName': 'All Source Files',
125                                  'fLocation': None,
126                                  'fRecursive': True,
127                                  'fType': 'project-files'},
128                       'fSearchSpec': {'fEndPos': None,
129                                       'fIncludeLinenos': True,
130                                       'fInterpretBackslashes': False,
131                                       'fMatchCase': False,
132                                       'fOmitBinary': True,
133                                       'fRegexFlags': 42,
134                                       'fReplaceText': u'lastLineNum',
135                                       'fReverse': False,
136                                       'fSearchText': u'fileLength',
137                                       'fStartPos': 0,
138                                       'fStyle': 'text',
139                                       'fWholeWords': False,
140                                       'fWrap': True},
141                       'fUIOptions': {'fAutoBackground': True,
142                                      'fFilePrefix': 'short-file',
143                                      'fFindAfterReplace': True,
144                                      'fInSelection': False,
145                                      'fIncremental': True,
146                                      'fReplaceOnDisk': False,
147                                      'fShowFirstMatch': False,
148                                      'fShowLineno': True,
149                                      'fShowReplaceWidgets': True}}),
150                     ('debug-data',
151                      'wide',
152                      0,
153                      {}),
154                     ('debug-exceptions',
155                      'wide',
156                      0,
157                      {}),
158                     ('python-shell',
159                      'wide',
160                      2,
161                      {'active-range': (None,
162        -1,
163        -1),
164                       'attrib-starts': [],
165                       'code-line': '',
166                       'first-line': 0L,
167                       'folded-linenos': [],
168                       'history': {},
169                       'launch-id': None,
170                       'sel-line': 3L,
171                       'sel-line-start': 132L,
172                       'selection_end': 132L,
173                       'selection_start': 132L,
174                       'zoom': 0L}),
175                     ('messages',
176                      'wide',
177                      2,
178                      {'current-domain': 0}),
179                     ('os-command',
180                      'wide',
181                      1,
182                      {'last-percent': 0.8,
183                       'toolbox-percent': 1.0,
184                       'toolbox-tree-sel': ''})],
185        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('logging_service.py'),
186        {'attrib-starts': [('startup|0|',
187                            17)],
188         'code-line': 'def startup():\n',
189         'first-line': 12L,
190         'folded-linenos': [],
191         'sel-line': 17L,
192         'sel-line-start': 513L,
193         'selection_end': 527L,
194         'selection_start': 527L,
195         'zoom': 0L},
196        1563295110.747974],
197        [loc('get_app_properties.py'),
198         {'attrib-starts': [],
199          'code-line': '',
200          'first-line': 0L,
201          'folded-linenos': [],
202          'sel-line': 0L,
203          'sel-line-start': 0L,
204          'selection_end': 0L,
205          'selection_start': 0L,
206          'zoom': 0L},
207         1563295114.739899],
208        [loc('logging_service.py'),
209         {'attrib-starts': [('startup|0|',
210                             17)],
211          'code-line': 'def startup():\n',
212          'first-line': 12L,
213          'folded-linenos': [],
214          'sel-line': 17L,
215          'sel-line-start': 513L,
216          'selection_end': 527L,
217          'selection_start': 527L,
218          'zoom': 0L},
219         1563295120.252652],
220        [loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
221         {'attrib-starts': [('ConfigParser|0|',
222                             85),
223                            ('ConfigParser|0|.get|0|',
224                             589)],
225          'code-line': '                raise NoSectionError(section)\n',
226          'first-line': 601L,
227          'folded-linenos': [],
228          'sel-line': 606L,
229          'sel-line-start': 22028L,
230          'selection_end': 22028L,
231          'selection_start': 22028L,
232          'zoom': 0L},
233         1563295122.349933],
234        [loc('logging_service.py'),
235         {'attrib-starts': [('startup|0|',
236                             17)],
237          'code-line': 'def startup():\n',
238          'first-line': 12L,
239          'folded-linenos': [],
240          'sel-line': 17L,
241          'sel-line-start': 513L,
242          'selection_end': 527L,
243          'selection_start': 527L,
244          'zoom': 0L},
245         1563295126.806403],
246        [loc('__main__.py'),
247         {'attrib-starts': [('main|0|',
248                             2)],
249          'code-line': '    except:  # If config file not found, use a quest'\
250                       'ion mark placeholder \n',
251          'first-line': 0L,
252          'folded-linenos': [],
253          'sel-line': 8L,
254          'sel-line-start': 356L,
255          'selection_end': 417L,
256          'selection_start': 417L,
257          'zoom': 0L},
258         1563298825.820571],
259        [loc('cad_watcher.py'),
260         {'attrib-starts': [('readFile|0|',
261                             20)],
262          'code-line': 'def readFile():\n',
263          'first-line': 15L,
264          'folded-linenos': [],
265          'sel-line': 20L,
266          'sel-line-start': 575L,
267          'selection_end': 590L,
268          'selection_start': 590L,
269          'zoom': 0L},
270         1563298863.068667],
271        [loc('logging_service.py'),
272         {'attrib-starts': [('startup|0|',
273                             17)],
274          'code-line': 'def startup():\n',
275          'first-line': 12L,
276          'folded-linenos': [],
277          'sel-line': 17L,
278          'sel-line-start': 513L,
279          'selection_end': 527L,
280          'selection_start': 527L,
281          'zoom': 0L},
282         1563298890.003056],
283        [loc('../../../config/logging_service.cfg'),
284         {'attrib-starts': [],
285          'code-line': '[Paths]\n',
286          'first-line': 0L,
287          'folded-linenos': [],
288          'sel-line': 0L,
289          'sel-line-start': 0L,
290          'selection_end': 0L,
291          'selection_start': 0L,
292          'zoom': 0L},
293         1563298905.850272],
294        [loc('logging_service.py'),
295         {'attrib-starts': [('startup|0|',
296                             17)],
297          'code-line': '    # get path to output file from configuration\n',
298          'first-line': 12L,
299          'folded-linenos': [],
300          'sel-line': 18L,
301          'sel-line-start': 528L,
302          'selection_end': 720L,
303          'selection_start': 528L,
304          'zoom': 0L},
305         1563298925.9103],
306        [loc('cad_watcher.py'),
307         {'attrib-starts': [('readFile|0|',
308                             20)],
309          'code-line': '        text_file = open(logfilepath + "CADcomments.'\
310                       'log", "r")\n',
311          'first-line': 12L,
312          'folded-linenos': [],
313          'sel-line': 28L,
314          'sel-line-start': 813L,
315          'selection_end': 852L,
316          'selection_start': 852L,
317          'zoom': 0L},
318         1563298944.867817],
319        [loc('logging_service.py'),
320         {'attrib-starts': [('startup|0|',
321                             17)],
322          'code-line': '    # get path to output file from configuration\n',
323          'first-line': 12L,
324          'folded-linenos': [],
325          'sel-line': 18L,
326          'sel-line-start': 528L,
327          'selection_end': 720L,
328          'selection_start': 528L,
329          'zoom': 0L},
330         1563298961.49365],
331        [loc('../../../config/logging_service.cfg'),
332         {'attrib-starts': [],
333          'code-line': '[Paths]\n',
334          'first-line': 0L,
335          'folded-linenos': [],
336          'sel-line': 0L,
337          'sel-line-start': 0L,
338          'selection_end': 0L,
339          'selection_start': 0L,
340          'zoom': 0L},
341         1563298965.173624],
342        [loc('cad_watcher.py'),
343         {'attrib-starts': [('readFile|0|',
344                             20)],
345          'code-line': '    config = ConfigParser.ConfigParser()\n',
346          'first-line': 0L,
347          'folded-linenos': [],
348          'sel-line': 22L,
349          'sel-line-start': 640L,
350          'selection_end': 640L,
351          'selection_start': 640L,
352          'zoom': 0L},
353         1563299005.834573],
354        [loc('__main__.py'),
355         {'attrib-starts': [],
356          'code-line': 'import logging_service, os, ConfigParser\n',
357          'first-line': 0L,
358          'folded-linenos': [],
359          'sel-line': 0L,
360          'sel-line-start': 0L,
361          'selection_end': 40L,
362          'selection_start': 28L,
363          'zoom': 0L},
364         1563299012.548244],
365        [loc('cad_watcher.py'),
366         {'attrib-starts': [('readFile|0|',
367                             20)],
368          'code-line': '    # get path to input file from configuration\n',
369          'first-line': 18L,
370          'folded-linenos': [],
371          'sel-line': 21L,
372          'sel-line-start': 605L,
373          'selection_end': 628L,
374          'selection_start': 628L,
375          'zoom': 0L},
376         1563311309.128491],
377        [loc('logging_service.py'),
378         {'attrib-starts': [('getSimTime|0|',
379                             7)],
380          'code-line': '    h, m = divmod(m, 60)\n',
381          'first-line': 3L,
382          'folded-linenos': [],
383          'sel-line': 14L,
384          'sel-line-start': 444L,
385          'selection_end': 468L,
386          'selection_start': 468L,
387          'zoom': 0L},
388         1563311363.078389],
389        [loc('../../../../../../../../usr/lib/python2.7/json/decoder.py'),
390         {'attrib-starts': [('JSONDecoder|0|',
391                             271),
392                            ('JSONDecoder|0|.raw_decode|0|',
393                             369)],
394          'code-line': '            obj, end = self.scan_once(s, idx)\n',
395          'first-line': 370L,
396          'folded-linenos': [],
397          'sel-line': 379L,
398          'sel-line-start': 13534L,
399          'selection_end': 13534L,
400          'selection_start': 13534L,
401          'zoom': 0L},
402         1563311407.328163],
403        [loc('logging_service.py'),
404         {'attrib-starts': [('getSimTime|0|',
405                             7)],
406          'code-line': '    h, m = divmod(m, 60)\n',
407          'first-line': 6L,
408          'folded-linenos': [],
409          'sel-line': 14L,
410          'sel-line-start': 444L,
411          'selection_end': 468L,
412          'selection_start': 468L,
413          'zoom': 0L},
414         1563311428.009251],
415        [loc('../../../../../../../../usr/lib/python2.7/json/decoder.py'),
416         {'attrib-starts': [('JSONDecoder|0|',
417                             271),
418                            ('JSONDecoder|0|.raw_decode|0|',
419                             369)],
420          'code-line': '            obj, end = self.scan_once(s, idx)\n',
421          'first-line': 370L,
422          'folded-linenos': [],
423          'sel-line': 379L,
424          'sel-line-start': 13534L,
425          'selection_end': 13534L,
426          'selection_start': 13534L,
427          'zoom': 0L},
428         1563311437.82119]],
429        20),
430        'current-loc': loc('logging_service.py'),
431        'editor-state-list': [(loc('cad_watcher.py'),
432                               {'attrib-starts': [('readFile|0|',
433        20)],
434                                'code-line': '    # get path to input file f'\
435        'rom configuration\n',
436                                'first-line': 18L,
437                                'folded-linenos': [],
438                                'sel-line': 21L,
439                                'sel-line-start': 605L,
440                                'selection_end': 628L,
441                                'selection_start': 628L,
442                                'zoom': 0L}),
443                              (loc('cms_watcher.py'),
444                               {'attrib-starts': [('isEmpty|0|',
445        12)],
446                                'code-line': '     return cmsitem == ":::::"'\
447        '\n',
448                                'first-line': 0L,
449                                'folded-linenos': [],
450                                'sel-line': 13L,
451                                'sel-line-start': 324L,
452                                'selection_end': 353L,
453                                'selection_start': 353L,
454                                'zoom': 0L}),
455                              (loc('../../../../../../../../usr/lib/python2.7/json/decoder.py'),
456                               {'attrib-starts': [('JSONDecoder|0|',
457        271),
458        ('JSONDecoder|0|.raw_decode|0|',
459         369)],
460                                'code-line': '            obj, end = self.sc'\
461        'an_once(s, idx)\n',
462                                'first-line': 370L,
463                                'folded-linenos': [],
464                                'sel-line': 379L,
465                                'sel-line-start': 13534L,
466                                'selection_end': 13534L,
467                                'selection_start': 13534L,
468                                'zoom': 0L}),
469                              (loc('../../../config/logging_service.cfg'),
470                               {'attrib-starts': [],
471                                'code-line': '[Paths]\n',
472                                'first-line': 0L,
473                                'folded-linenos': [],
474                                'sel-line': 0L,
475                                'sel-line-start': 0L,
476                                'selection_end': 0L,
477                                'selection_start': 0L,
478                                'zoom': 0L}),
479                              (loc('logging_service.py'),
480                               {'attrib-starts': [('getSimTime|0|',
481        7)],
482                                'code-line': '       print "Error loading js'\
483        'on for elapsed time"\n',
484                                'first-line': 0L,
485                                'folded-linenos': [],
486                                'sel-line': 14L,
487                                'sel-line-start': 410L,
488                                'selection_end': 460L,
489                                'selection_start': 460L,
490                                'zoom': 0L}),
491                              (loc('__main__.py'),
492                               {'attrib-starts': [],
493                                'code-line': 'import logging_service, os, Co'\
494        'nfigParser\n',
495                                'first-line': 0L,
496                                'folded-linenos': [],
497                                'sel-line': 0L,
498                                'sel-line-start': 0L,
499                                'selection_end': 40L,
500                                'selection_start': 28L,
501                                'zoom': 0L})],
502        'has-focus': True,
503        'locked': False},
504        [loc('cad_watcher.py'),
505         loc('cms_watcher.py'),
506         loc('../../../../../../../../usr/lib/python2.7/json/decoder.py'),
507         loc('../../../config/logging_service.cfg'),
508         loc('logging_service.py'),
509         loc('__main__.py')]),
510                               'open_files': [u'../../../config/logging_service.cfg',
511        u'__main__.py',
512        u'cms_watcher.py',
513        u'cad_watcher.py',
514        u'logging_service.py']},
515        'saved_notebook_display': None,
516        'split_percents': {0: 0.5},
517        'splits': 2,
518        'tab_location': 'top',
519        'traversal_pos': ((0,
520                           3),
521                          1563311427.998152),
522        'user_data': {}},
523                 'saved_notebook_display': None,
524                 'split_percents': {},
525                 'splits': 1,
526                 'tab_location': 'left',
527                 'traversal_pos': ((0,
528                                    4),
529                                   1563311544.529663),
530                 'user_data': {}},
531        'window-alloc': (29,
532                         0,
533                         1197,
534                         722)}]}
535guimgr.recent-documents = [loc('logging_service.py'),
536                           loc('../../../../../../../../usr/lib/python2.7/json/decoder.py'),
537                           loc('cad_watcher.py'),
538                           loc('__main__.py'),
539                           loc('../../../config/logging_service.cfg'),
540                           loc('cms_watcher.py')]
541guimgr.visual-state = {loc('get_app_properties.py'): {'attrib-starts': [],
542        'code-line': '',
543        'first-line': 0L,
544        'folded-linenos': [],
545        'sel-line': 0L,
546        'sel-line-start': 0L,
547        'selection_end': 0L,
548        'selection_start': 0L,
549        'zoom': 0L},
550                       loc('get_revision'): {'attrib-starts': [],
551        'code-line': '',
552        'first-line': 0L,
553        'folded-linenos': [],
554        'sel-line': 18L,
555        'sel-line-start': 455L,
556        'selection_end': 455L,
557        'selection_start': 455L,
558        'zoom': 0L},
559                       loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
560        'ttrib-starts': [('ConfigParser|0|',
561                          85),
562                         ('ConfigParser|0|.get|0|',
563                          589)],
564        'code-line': '                raise NoSectionError(section)\n',
565        'first-line': 597L,
566        'folded-linenos': [],
567        'sel-line': 606L,
568        'sel-line-start': 22028L,
569        'selection_end': 22028L,
570        'selection_start': 22028L,
571        'zoom': 0L},
572                       loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
573        'ttrib-starts': [('ConfigParser|0|',
574                          85),
575                         ('ConfigParser|0|.get|0|',
576                          589)],
577        'code-line': '                raise NoSectionError(section)\n',
578        'first-line': 601L,
579        'folded-linenos': [],
580        'sel-line': 606L,
581        'sel-line-start': 22028L,
582        'selection_end': 22028L,
583        'selection_start': 22028L,
584        'zoom': 0L}}
585proj.build-cmd = {None: ('default',
586                         None)}
587proj.env-vars = {None: ('default',
588                        [u''])}
589search.search-history = [u'default directory policy']
Note: See TracBrowser for help on using the repository browser.