Skip to content

Commit 4a63d8c

Browse files
committed
Update 1 code files
Modified: • src/omnipkg/cli.py (+8/-0 lines) [gitship-generated]
1 parent 6c24734 commit 4a63d8c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/omnipkg/cli.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,6 +1949,14 @@ def main():
19491949
if args.tests:
19501950
safe_print(_(" Running tests: {}").format(", ".join(args.tests)))
19511951

1952+
if os.environ.get("OMNIPKG_DAEMON_WORKER") == "1":
1953+
# Running inside daemon worker - stdout is JSON pipe.
1954+
# Relaunch as independent process with real console.
1955+
import ctypes
1956+
env = os.environ.copy()
1957+
env.pop("OMNIPKG_DAEMON_WORKER", None)
1958+
subprocess.Popen(cmd, env=env, creationflags=0)
1959+
return 0
19521960
return subprocess.call(cmd)
19531961

19541962
elif args.command == "install":

0 commit comments

Comments
 (0)