Changeset 35

Show
Ignore:
Timestamp:
07/22/07 17:45:07 (5 years ago)
Author:
dlefevre
Message:

The command prompt now accept command lines. As for now the q command exit the server properly. More commands will be added in the future.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mymrc/trunk/mymrc/src/mymrcd.py

    r14 r35  
    4646     
    4747if __name__ == '__main__': 
    48     APP_LOCK = App_lock() 
     48    #APP_LOCK = App_lock() 
    4949    myMRC = MyMRCd() 
    5050    myMRC.run() 
    5151    print os.getcwd()  
    52     APP_LOCK.wait( ) 
     52    while True: 
     53        if str(raw_input().strip()) == "q": 
     54            break 
     55    del myMRC 
     56    print "Bye bye" 
     57    #APP_LOCK.wait( )