si ora funziona:

#!/bin/python

a = 2
b = 3
somma = a + b
print "somma = ", somma

import subprocess
p = subprocess.call(["/home/ubuntu/ggc/prove/py3.4/bin/python3.4",
"/home/ubuntu/ggc/prove/sole24ore/asyncioUse_5.py"])
print p

c = 4
somma += c
print "somma = ", somma

1) esegue codice python2.76
2) esegue codice python3.4
3) esegue codice python2.76

Grazie a tutti i vostri consigli e suggerimenti.
Marco
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a