From 23b8dd2fd6d03b0d3b04bea5fb13ee2b58dee6de Mon Sep 17 00:00:00 2001 From: Aleksander Kiryk Date: Tue, 22 Feb 2022 13:10:42 +0100 Subject: [PATCH] Add a comment on passing arguments to screen session --- watch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/watch.py b/watch.py index fc3e118..5cfe376 100755 --- a/watch.py +++ b/watch.py @@ -96,6 +96,8 @@ if args.session: if cmd[0] == "start": print(f"Starting sargraph session '{sid}'") + + # *sys.argv[3:] is all arguments after 'chart start' p = subprocess.Popen(["screen", "-dmSL", sid, os.path.realpath(__main__.__file__), *sys.argv[3:]]) while p.poll() is None: time.sleep(0.1)