mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-05-14 02:33:51 +00:00
14 lines
190 B
Python
14 lines
190 B
Python
import struct
|
|
import sys
|
|
import os
|
|
|
|
filename = sys.argv[1]
|
|
|
|
size = os.path.getsize(filename)
|
|
|
|
f = open(filename, 'r')
|
|
os.write(1, f.read())
|
|
f.close()
|
|
|
|
os.write(1, (struct.pack("<Q", size)))
|