Explorar o código

add debug out for command line args

Steven Silvester %!s(int64=4) %!d(string=hai) anos
pai
achega
4a1b78cc1a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      binder/start

+ 3 - 0
binder/start

@@ -6,4 +6,7 @@ import os
 argv = sys.argv[1:] + ['--config', 'binder/jupyter_notebook_config.py']
 print(argv)
 
+with open('startup_args.txt', 'w') as fid:
+    fid.write(str(argv))
+
 os.execv(shutil.which(argv[0]), argv)