From 97b831b273fb511831efbfc6fcb6a24fd596fdee Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Thu, 2 Nov 2006 22:07:22 +0000 Subject: [PATCH] - fix interactive check --- Shell.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Shell.py b/Shell.py index 24ce2b54..107a37dd 100755 --- a/Shell.py +++ b/Shell.py @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2005 The Trustees of Princeton University # -# $Id: Shell.py,v 1.10 2006/11/02 15:05:07 mlhuang Exp $ +# $Id: Shell.py,v 1.11 2006/11/02 15:31:02 mlhuang Exp $ # import os, sys @@ -34,10 +34,8 @@ user = None password = None role = None -if len(sys.argv) > 1 and os.path.exists(sys.argv[1]): +if len(sys.argv) < 2 or not os.path.exists(sys.argv[1]): # Parse options if called interactively - script = sys.argv[1] - def usage(): print "Usage: %s [OPTION]..." % sys.argv[0] print "Options:" -- 2.47.0