Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
149de022
Commit
149de022
authored
Nov 08, 2018
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LINT
parent
b42ca205
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/main.c
src/main.c
+6
-5
No files found.
src/main.c
View file @
149de022
...
...
@@ -45,8 +45,9 @@ main(int argc, char** argv)
Py_InitializeEx
(
0
);
// This doesn't seem to work anymore, but I'm keeping it for good measure anyway
// The effective way to turn this off is below: setting sys.done_write_bytecode = True
// This doesn't seem to work anymore, but I'm keeping it for good measure
// anyway The effective way to turn this off is below: setting
// sys.done_write_bytecode = True
setenv
(
"PYTHONDONTWRITEBYTECODE"
,
"1"
,
0
);
PyObject
*
sys
=
PyImport_ImportModule
(
"sys"
);
...
...
@@ -57,9 +58,9 @@ main(int argc, char** argv)
return
1
;
}
// By disabling the cache_tag, Python won't look for cached bytecode files
when
// importing modules, which saves on filesystem I/O time
PyObject
*
implementation
=
PyObject_GetAttrString
(
sys
,
"implementation"
);
// By disabling the cache_tag, Python won't look for cached bytecode files
//
when
importing modules, which saves on filesystem I/O time
PyObject
*
implementation
=
PyObject_GetAttrString
(
sys
,
"implementation"
);
if
(
implementation
==
NULL
)
{
return
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment