##// END OF EJS Templates
Make user_setup a top-level function in iplib and add better tests....
Make user_setup a top-level function in iplib and add better tests. This function has grown way too big and it needs a refactoring, but at least now it's a standalone thing (it didn't need to be a method) and can be called in a non-interactive fashion.

File last commit:

r1753:7cbac8c0
r1908:e550c146
Show More
compile.py
20 lines | 417 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Call the compile script to check that all code we ship compiles correctly.
"""
import os
import sys
vstr = '.'.join(map(str,sys.version_info[:2]))
stat = os.system('python %s/lib/python%s/compileall.py .' % (sys.prefix,vstr))
print
if stat:
print '*** THERE WAS AN ERROR! ***'
print 'See messages above for the actual file that produced it.'
else:
print 'OK'
sys.exit(stat)