provide setup for MLZ_Amagnet to be used @PSI soon

Also implement lots of fixes and improvements.

fixes: #3381

Change-Id: Ibe6664da00756ae5813b90f190295045808b2ff0
This commit is contained in:
Enrico Faulhaber
2017-07-20 16:29:21 +02:00
parent 63418fce04
commit 2bb96bea70
31 changed files with 1510 additions and 403 deletions

View File

@ -23,6 +23,8 @@
# nothing here yet.
from __future__ import print_function
import code
@ -47,16 +49,19 @@ class NameSpace(dict):
dict.__delitem__(self, name)
import ConfigParser
try:
import ConfigParser
except ImportError:
import configparser as ConfigParser
def getClientOpts(cfgfile):
parser = ConfigParser.SafeConfigParser()
if not parser.read([cfgfile + '.cfg']):
print "Error reading cfg file %r" % cfgfile
print("Error reading cfg file %r" % cfgfile)
return {}
if not parser.has_section('client'):
print "No Server section found!"
print("No Server section found!")
return dict(item for item in parser.items('client'))
@ -83,7 +88,7 @@ class ClientConsole(object):
def helpCmd(self, arg=Ellipsis):
if arg is Ellipsis:
print "No help available yet"
print("No help available yet")
else:
help(arg)