user1696811
user1696811

Reputation: 971

How do I open a pypy process from an ordinary python program?

I run a simple piece of code using python which I would like to open another program in pypy (as this is much faster).

I would also like to be able to pass in a dictionary into the pypy program.

I can get the file to open using...

subprocess.Popen(['c:\pypy-2.0-beta1\pypy.exe', os.path.expanduser('Main.py')])

but I have no idea how to pass in a dictionary or how to open a specific function within the pypy program.

Upvotes: 0

Views: 407

Answers (1)

fijal
fijal

Reputation: 3190

I suggest you look into execnet (http://pypi.python.org/pypi/execnet), it's a pretty cool library to do this kind of stuff.

Upvotes: 1

Related Questions