I want that a script should only be executed when it is called from another 
script and should not be directly executable through linux command line.

Like, I have two scripts "scrip1.py" and "script2.py"  and there is a line in 
"script1.py" to call "script2.py" as subprocess.call(["python", "script2.py"]).

Then this is should call script2 but I should not be able to directly call 
script2 as $python script2.py

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to