Browse Source

main: mention that AttachConsole failing probably isn't causing other issues

2.0
Ian Burgwin 1 year ago
parent
commit
30d50427e9
Signed by: ianburgwin
GPG Key ID: 90725113CA578EAA
  1. 1
      ninfs/main.py

1
ninfs/main.py

@ -70,6 +70,7 @@ def mount(mount_type: str, return_doc: bool = False) -> int: @@ -70,6 +70,7 @@ def mount(mount_type: str, return_doc: bool = False) -> int:
parent_pid = int(environ['NINFS_GUI_PARENT_PID'])
if windll.kernel32.AttachConsole(parent_pid) == 0: # ATTACH_PARENT_PROCESS
print(f'Failed to do AttachConsole({parent_pid}):', get_last_error())
print("(Note: this most likely isn't the cause of any other issues you might have!)")
except KeyError:
pass

Loading…
Cancel
Save