SFELPHOTON-1337: SwissMX split/ cleanup/move repositories
This commit is contained in:
22
swissmx.py
22
swissmx.py
@@ -90,18 +90,14 @@ logging.basicConfig(level=logging.INFO, format='%(levelname)s:%(module)s:%(linen
|
||||
#logging.getLogger('pbtools.misc.pp_comm').setLevel(logging.INFO)
|
||||
_log = logging.getLogger("swissmx")
|
||||
|
||||
class col:
|
||||
d = '\033[0m' #default
|
||||
r = '\033[31m' #red
|
||||
g = '\033[32m' #green
|
||||
y = '\033[33m' #yellow
|
||||
rr= '\033[91m' #red(bright)
|
||||
gg= '\033[92m' #green(bright)
|
||||
yy= '\033[93m' #yellow(bright)
|
||||
b = '\033[1m' #bold
|
||||
u = '\033[4m' #underline
|
||||
|
||||
|
||||
if __name__=="__main__":
|
||||
import sys,socket
|
||||
if socket.gethostname()=='ganymede':
|
||||
sys.path.insert(0, os.path.expanduser('~/Documents/prj/SwissFEL/PBTools'))
|
||||
else:
|
||||
sys.path.insert(0, '/sf/cristallina/applications/SwissMX/PBTools')
|
||||
sys.path.insert(0, '/sf/cristallina/applications/SwissMX/PBSwissMX/python')
|
||||
#_log.info(sys.path)
|
||||
|
||||
import time
|
||||
class timestamp():
|
||||
@@ -2670,8 +2666,6 @@ if __name__=="__main__":
|
||||
#use EPICS if connected to ESC network
|
||||
os.environ['EPICS_CA_ADDR_LIST'] ='129.129.244.255 sf-saresc-cagw.psi.ch:5062 sf-saresc-cagw.psi.ch:5066'
|
||||
|
||||
|
||||
|
||||
#(h, t)=os.path.split(sys.argv[0]);cmd='\n '+(t if len(h)>20 else sys.argv[0])+' '
|
||||
#exampleCmd=('', '-m0xf -v0')
|
||||
epilog=__doc__ #+'\nExamples:'+''.join(map(lambda s:cmd+s, exampleCmd))+'\n'
|
||||
|
||||
Reference in New Issue
Block a user