how to run python scripts from other script and have thier root in my root

Posted by Ahmad Dwaik on Stack Overflow See other posts from Stack Overflow or by Ahmad Dwaik
Published on 2010-03-16T13:19:42Z Indexed on 2010/03/16 13:56 UTC
Read the original article Hit count: 235

hello all

i have a module "B", i want to run it from a script "C", and i want to call global variables in "B", as they wer in "C" root, another problem that is if i imported sys in "B" when i run "C" it doesnt see sys

# NameError: global name 'sys' is not defined #

what shall i do?

© Stack Overflow or respective owner

Related posts about python

Related posts about import