• # Heu... comment ca marche python?

    Posté par . En réponse au journal Mise à jour securité gentoo. (la revanche). Évalué à 2.

    # ./myglsa.py
    ./myglsa.py: line 4: glsadir: command not found
    ./myglsa.py: line 5: glsafiles: command not found
    ./myglsa.py: line 10: syntax error near unexpected token `('
    ./myglsa.py: line 10: `def listDir(dir):'



    # python myglsa.py
    Traceback (most recent call last):
    File "myglsa.py", line 70, in ?
    mergeres = getMergeDict()
    File "myglsa.py", line 49, in getMergeDict
    emergeResFile = open(emergeResFileName,'r')
    IOError: [Errno 2] No such file or directory: './emerge-p-world2.txt'


    Alors c'est laquelle la bonne version?