Advertisement
FranzVuttke

extrinargs.py

Dec 17th, 2023
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | Source Code | 0 0
  1. import sys
  2.  
  3. sys.argv.pop(0) # arg with 0 index is script name, not useful for us now, so we get rid of it...
  4. sys.argv = (" ".join(sys.argv)).split(" ") # pythonic
  5.  
  6.  
  7. # sys.argv ready to use
  8. print(sys.argv)
  9.  
  10.  
  11.  
Tags: extrinargs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement