You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("Error in service '%s': %s"% (plugin_name, str(e)), file=sys.stderr)
61
70
traceback.print_exc()
62
71
self.write({"error": str(e)})
@@ -78,9 +87,15 @@ def make_app():
78
87
])
79
88
80
89
if__name__=="__main__":
81
-
conda_env_name=sys.argv[1]
82
-
plugin_start_script=sys.argv[2]
83
-
plugin_src_dir=sys.argv[3]
90
+
iflen(sys.argv) ==1:
91
+
plugin_start_script=sys.argv[1]
92
+
eliflen(sys.argv) ==3:
93
+
conda_env_name=sys.argv[1]
94
+
plugin_start_script=sys.argv[2]
95
+
plugin_src_dir=sys.argv[3]
96
+
else:
97
+
print("Incorrect number of arguments provided\nUsage: trigger.py <conda_env_name> <plugin_start_script> <plugin_src_dir> <-- for use with conda\n or trigger.py <plugin_start_script> <-- for use without conda\n", file=sys.stderr)
0 commit comments