Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

sync: the pwd-import anchor follows upstream's import line (zlib left it)

LNPANDYdd06f6f5dcd5
diff --git a/scripts/sync_upstream.py b/scripts/sync_upstream.py
index e5149a2b..10fa4908 100644
--- a/scripts/sync_upstream.py
+++ b/scripts/sync_upstream.py
@@ -516,8 +516,8 @@ def patch_nsp(t):
del env['DOTNET_ROOT']; os.environ.pop('DOTNET_ROOT', None)
say('DOTNET_ROOT: removed (none verified — the apphost searches its default locations)')""")]))
P.append(('pwd import', 'import ast, collections, ctypes, getpass, pwd', [(
- "import ast, collections, ctypes, getpass, hashlib, importlib.util, json, os, re, shlex, shutil, struct, subprocess, sys, tempfile, threading, time, types, zlib",
- "import ast, collections, ctypes, getpass, pwd, hashlib, importlib.util, json, os, re, shlex, shutil, struct, subprocess, sys, tempfile, threading, time, types, zlib")]))
+ "import ast, collections, ctypes, getpass, hashlib, importlib.util, json, os, re, shlex, shutil, struct, subprocess, sys, tempfile, threading, time, types",
+ "import ast, collections, ctypes, getpass, pwd, hashlib, importlib.util, json, os, re, shlex, shutil, struct, subprocess, sys, tempfile, threading, time, types")]))
# HOME can be missing or empty under a GUI launch (issue #10): .NET's first-run configure then
# builds a mutex path from "" and dies with NuGet-Migrations + lstat("") before reading a project.
P.append(('HOME fallback', 'DOTNET_CLI_HOME', [(