We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f94c3f1 + a7a6df4 commit 48a4a58Copy full SHA for 48a4a58
split.py
@@ -1,11 +1,19 @@
1
import os
2
+import sys
3
4
border = '// ----------------------------------------------------------------------------'
5
6
+PythonVersion = sys.version_info[0];
7
+
8
with open('httplib.h') as f:
9
lines = f.readlines()
10
inImplementation = False
- os.makedirs('out', exist_ok=True)
11
12
+ if PythonVersion < 3:
13
+ os.makedirs('out')
14
+ else:
15
+ os.makedirs('out', exist_ok=True)
16
17
with open('out/httplib.h', 'w') as fh:
18
with open('out/httplib.cc', 'w') as fc:
19
fc.write('#include "httplib.h"\n')
0 commit comments