mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix an issue with stdout redirection on Windows, and remove code added in a failed attempt to resolve a Windows regression test issue.
This commit is contained in:
committed by
Dave Page
parent
4dcd3e31d8
commit
546161ab1a
@@ -31,6 +31,12 @@ if 'SERVER_MODE' in globals():
|
||||
else:
|
||||
builtins.SERVER_MODE = None
|
||||
|
||||
# Set null device file path to stdout, stdin, stderr if they are None
|
||||
for _name in ('stdin', 'stdout', 'stderr'):
|
||||
if getattr(sys, _name) is None:
|
||||
setattr(sys, _name, open(os.devnull,
|
||||
'r' if _name == 'stdin' else 'w'))
|
||||
|
||||
import config
|
||||
from pgadmin import create_app
|
||||
from pgadmin.utils import u, fs_encoding, file_quote
|
||||
|
||||
Reference in New Issue
Block a user