Remove debug print, fix argument checking
This commit is contained in:
parent
9df2cddf57
commit
6658cfba80
@ -15,11 +15,10 @@ def change_user(user):
|
|||||||
return pwrec[6]
|
return pwrec[6]
|
||||||
|
|
||||||
def shell_watch_cb(pid, condition, user_data=None):
|
def shell_watch_cb(pid, condition, user_data=None):
|
||||||
print "In shell watch callback."
|
|
||||||
gtk.main_quit()
|
gtk.main_quit()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
if len(sys.argv) < 1:
|
if len(sys.argv) < 2:
|
||||||
print "Usage: %s <test user>" % sys.argv[0]
|
print "Usage: %s <test user>" % sys.argv[0]
|
||||||
user = sys.argv[1]
|
user = sys.argv[1]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user