On Tue, Nov 17, 2009 at 8:56 PM, ashwini yal <ashwini...@gmail.com> wrote: > Hi, > > I am trying to run a python script from interactive mode ,but i am not able > to know how to run it? Is it possible? if yes please let me how to run the > script?
execfile("/path/to/the/script.py") or if it's on your sys.path and doesn't use the `if __name__ == "__main__":` idiom then just importing it works: import script_name Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list