1
0
mirror of synced 2025-04-21 22:25:55 +03:00

Merge pull request #338 from TheMaverickProgrammer/master

fixed missing import
This commit is contained in:
yhirose 2020-01-25 20:44:59 -05:00 committed by GitHub
commit 48a4a5812e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,19 @@
import os
import sys
border = '// ----------------------------------------------------------------------------'
PythonVersion = sys.version_info[0];
with open('httplib.h') as f:
lines = f.readlines()
inImplementation = False
os.makedirs('out', exist_ok=True)
if PythonVersion < 3:
os.makedirs('out')
else:
os.makedirs('out', exist_ok=True)
with open('out/httplib.h', 'w') as fh:
with open('out/httplib.cc', 'w') as fc:
fc.write('#include "httplib.h"\n')