python: sending information between two scripts
Posted
by Peter
on Stack Overflow
See other posts from Stack Overflow
or by Peter
Published on 2010-06-18T02:56:08Z
Indexed on
2010/06/18
3:03 UTC
Read the original article
Hit count: 260
python
I have two Python scripts in two different locations and cannot be moved. What is the best way to send information between the two scripts?
say for example in script1.py i had a string e.g.
x = 'teststring'
then i need variable 'x' passed to script2.py, which saves the variable 'x' to a text file?
Any ideas?
© Stack Overflow or respective owner