Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7ed1e424a9
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (20 sloc) 0.499 kb
#!/usr/bin/env python
try:
import sagecell_config
except:
import sagecell_config_default as sagecell_config
import uuid
options=sagecell_config.device_config
python=options.pop('python')
pidfile=''
command=python+' trusted_db.py '
for k,v in options.items():
if k=='pidfile':
v+=str(uuid.uuid4())+'.pid'
pidfile=v
command+=' --%s %r '%(k,v)
import os
print 'Executing: ', command
os.system(command)
if pidfile and os.path.isfile(pidfile):
os.remove(pidfile)
Jump to Line
Something went wrong with that request. Please try again.