Cleaned up python support code, removed unused functions.

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897787 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jsdelfino 2010-01-11 08:29:31 +00:00
commit 7d44c7ee8f
5 changed files with 51 additions and 164 deletions

View file

@ -31,9 +31,9 @@
int main(const int argc, char** argv) {
tuscany::gc_scoped_pool pool;
if (argc == 1) {
tuscany::python::evalDriverRun(tuscany::cin, tuscany::cout);
return 0;
if (argc != 2) {
tuscany::cerr << "Usage: python-shell <script.py>" << tuscany::endl;
return 1;
}
tuscany::python::evalDriverRun(argv[1], tuscany::cin, tuscany::cout);
return 0;