#!/usr/bin/env sage-python23

import sys
from sage.repl.load import load_cython
from sage.misc.temporary_file import tmp_filename

if len(sys.argv) > 1:
    s = load_cython(sys.argv.pop(1))
    import sage.all
    eval(compile(s, tmp_filename(), 'exec'))
