mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
feat(mako): LICENSE + README.md
Readme is very initial, but the architecture is set to evolve it to something no less than beatiful.
This commit is contained in:
@@ -308,13 +308,14 @@ def cmdline(argv=None):
|
||||
try:
|
||||
result = template.render(**data_converted)
|
||||
if output_file:
|
||||
if not os.path.isdir(dirname(output_file)):
|
||||
os.makedirs(dirname(output_file))
|
||||
dir = dirname(output_file)
|
||||
if dir and not os.path.isdir(dir):
|
||||
os.makedirs(dir)
|
||||
fh = open(output_file, "wb")
|
||||
fh.write(result)
|
||||
fh.write(result.encode('utf-8'))
|
||||
fh.close()
|
||||
else:
|
||||
print(result)
|
||||
print(result.encode('utf-8'))
|
||||
except:
|
||||
_exit()
|
||||
# end for each input file
|
||||
|
||||
Reference in New Issue
Block a user