Probably I am overlooking something very basic. I have a function
def execution(command):
os.system(command)
And another function
def start_this_thread():
server_thread = threading.Thread(target=execution, args=(exec_str))
server_thread.start()
I get an error:
self.run()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 483, in run
self.__target(*self.__args, **self.__kwargs)
TypeError: execution() takes exactly 1 argument (233 given)
Aparently the string length (command) is of length 233??