Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- source = ""
- target = ""
- files = []
- for line in sys.stdin:
- line = line.strip()
- if line.startswith("SRC="):
- source = line[4:]
- elif line.startswith("DEST="):
- target = line[5:]
- elif line.startswith("FILE="):
- files.append(line[5:])
- print(r"<PythonAPI>")
- print("SOURCE:", source)
- print("TARGET:", target)
- for f in files:
- print("FILE:", f)
Advertisement
Add Comment
Please, Sign In to add comment