mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update preprocess.py
This commit is contained in:
parent
a415781304
commit
a186f52354
@ -25,7 +25,10 @@ namespace pkpy{
|
|||||||
inline static std::map<std::string, const char*> kPythonLibs = {
|
inline static std::map<std::string, const char*> kPythonLibs = {
|
||||||
'''
|
'''
|
||||||
for key, value in sources.items():
|
for key, value in sources.items():
|
||||||
header += ' '*8 + '{"' + key + '", "' + value + '"},'
|
CHAR_LIMIT = 5000
|
||||||
|
value = ['"' + value[i:i+CHAR_LIMIT] + '" ' for i in range(0, len(value), CHAR_LIMIT)]
|
||||||
|
value = ''.join(value)
|
||||||
|
header += ' '*8 + '{"' + key + '", ' + value + '},'
|
||||||
header += '\n'
|
header += '\n'
|
||||||
|
|
||||||
header += '''
|
header += '''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user