Skip to content

Add function to set Py_NoSiteFlag global variable to 1 #971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 23, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove 64-bit branch.
  • Loading branch information
Alex Helms committed Oct 22, 2019
commit cc8b1c1c18e0fdd0a2e24c062a41329fe105bdd1
6 changes: 1 addition & 5 deletions src/runtime/runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1900,11 +1900,7 @@ internal static void SetNoSiteFlag()
try
{
Py_NoSiteFlag = loader.GetFunction(dllLocal, "Py_NoSiteFlag");

if (Is32Bit)
Marshal.WriteInt32(Py_NoSiteFlag, 1);
else
Marshal.WriteInt64(Py_NoSiteFlag, 1);
Marshal.WriteInt32(Py_NoSiteFlag, 1);
}
finally
{
Expand Down