Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ck.out('')
ck.out('* Executing command "'+c+'" ...')
os.system(c)
installed=True
try:
import ck.kernel as ckx
except Exception as e:
installed=False
if installed:
ck.out('')
ck.out('CK is now installed as python library. Testing ...')
ck.out('')
ckx.test()
else:
ck.out('')
ck.out('CK was not installed as Python library.')
# Content authorship options
if param=='' or param=='update':
ck.out(sep)
ck.out('*** Check latest version ***')
ck.out('')
r=ck.inp({'text': 'Would you like to check if your version is up-to-date (Y/n): '})
x=r['string'].lower()
if x!='n' and x!='no':
ck.out('')
ck.status({'out':'con'})