The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
334 B
14 lines
334 B
9 years ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys
|
||
|
|
||
|
plain_arg = sys.argv[1]
|
||
|
_, filename, _ = plain_arg.split(':')
|
||
|
try:
|
||
|
content = open(filename, 'rb').read()
|
||
|
except FileNotFoundError:
|
||
|
print('Could not open file. Missing dependency?')
|
||
|
sys.exit(1)
|
||
|
print('File opened, pretending to send it somewhere.')
|
||
|
print(len(content), 'bytes uploaded')
|