Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def fun(self, cmd, shell_cmd, merged_env, ss):
if int(sublime.version()) >= 3000:
self.window.create_output_panel("exec")
else:
self.window.get_output_panel("exec")
# self.window.create_output_panel("exec")
# print("THIis" + str(ss))
history.insert(ss)
if shell_cmd:
shell_cmd += " " + str(ss)
else:
cmd.append(str(ss))
self.debug_text = ""
if shell_cmd:
self.debug_text += "[shell_cmd: " + shell_cmd + "]\n"
else:
self.debug_text += "[cmd: " + str(cmd) + "]\n"
self.debug_text += "[dir: " + str(os.getcwd()) + "]\n"
if "PATH" in merged_env:
self.debug_text += "[path: " + str(merged_env["PATH"]) + "]"
else:
self.debug_text += "[path: " + str(os.environ["PATH"]) + "]"