Loading macros

Use pylint to check the syntax of macro modules:

 
$ pylint -E fileName.py

The '-E' option displays errors only. Unfortunately Sardana macros do not pass general syntax checks. Errors of the kind

 
E: 17,23:laser_scan: Instance of 'TypeNames' has no 'Moveable' member
E: 18,23:laser_scan: Instance of 'TypeNames' has no 'Float' member

cannot be avoided and have to be ignored. Still pylint -E is useful. If you find other errors like

 
E: 26,29:laser_scan.run: Undefined variable 'A'

you have to fix them.