Guest User

PythonAPI.py

a guest
Jun 7th, 2026
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import sys
  2.  
  3. source = ""
  4. target = ""
  5. files = []
  6.  
  7. for line in sys.stdin:
  8.     line = line.strip()
  9.  
  10.     if line.startswith("SRC="):
  11.         source = line[4:]
  12.  
  13.     elif line.startswith("DEST="):
  14.         target = line[5:]
  15.  
  16.     elif line.startswith("FILE="):
  17.         files.append(line[5:])
  18.  
  19. print(r"<PythonAPI>")
  20.  
  21. print("SOURCE:", source)
  22. print("TARGET:", target)
  23.  
  24. for f in files:
  25.     print("FILE:", f)
  26.  
Advertisement
Add Comment
Please, Sign In to add comment