2014-09-26 14:36 GMT+02:00 Marco Ippolito <ippolito.ma...@gmail.com>:
> Ciao Marco,
> non so se ho capito bene quello che mi suggerisci.
>
> Ho fatto così:
>
> #/home/ubuntu/ggc/prove/py3.4/bin/home/ubuntu/ggc/prove/py3.4/bin/python3.4
>
> a = 2
> b = 3
> somma = a + b
> print "somma = ", somma
>
> import subprocess
> p = subprocess.call(["python3.4",
> "/home/ubuntu/ggc/prove/sole24ore/asyncioUse_5.py"])

uhm, premetto che forse non ho capito bene io il tuo problema

però vedo che qui usi come primo argomento "python3.4"
questo bypassa la shebang e definisce direttamente l'interprete da usare

Allora è qui che dovresti mettere il path completo che mi hai scritto
sopra, per cui dovrebbe venire una csoa tipo:

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

M.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a