Oct-04-2019, 04:51 AM
(Oct-04-2019, 03:54 AM)Larz60+ Wrote: touch is not a python command. use subprocessimport subprocess subprocess(['touch', 'file.py'])
Thanks for the help, was missing calling the method or function (run or call) tested both and worked just do not know what is the difference of both? Here's the example of how it looked:
import subprocess subprocess.run(['touch','file.py'])