Codelife Codelife - 1 year ago 98
Python Question

Execute and create one python script from another

Suppose, I have a python script
, executing of
will create a copy of that file, let's say
. Now, I want to run
in such a way that first it will create
and then will execute

This is my
python script looks like,

import io
import shutil
import os

shutil.copy2('', '')

But out is saying not found

Answer Source

Run python with as it's first argument.


If you say what's your goal of this action. We can help you better.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download