mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
mac utility
This commit is contained in:
parent
db9c054f60
commit
c163ae5237
1 changed files with 19 additions and 0 deletions
19
Demo/pdist/mac.py
Executable file
19
Demo/pdist/mac.py
Executable file
|
|
@ -0,0 +1,19 @@
|
||||||
|
import sys
|
||||||
|
import string
|
||||||
|
import rcvs
|
||||||
|
|
||||||
|
def main():
|
||||||
|
while 1:
|
||||||
|
try:
|
||||||
|
line = raw_input('$ ')
|
||||||
|
except EOFError:
|
||||||
|
break
|
||||||
|
words = string.split(line)
|
||||||
|
if not words:
|
||||||
|
continue
|
||||||
|
if words[0] != 'rcvs':
|
||||||
|
words.insert(0, 'rcvs')
|
||||||
|
sys.argv = words
|
||||||
|
rcvs.main()
|
||||||
|
|
||||||
|
main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue