0

I was looking at this question :

Execute terminal command from python in new terminal window?

and was wondering how can I send a command with 2 arguments to a shell that is not cmd.exe I have my own shell , that is familiar with my command , but I want it to run from a python script.

something like :

def func(path_to_exe, command_name, arg1, arg2):
 execute(path_to_exe, "command_name arg1 arg2")

I saw that using sub process can help, but all the examples are using command line

thanks!

Community
  • 1
  • 1
user1386966
  • 3,302
  • 13
  • 43
  • 72

0 Answers0