View Single Post
Old 11-20-2012, 05:53 PM   #7
juh
Junior Member
juh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2012
Device: Odyssey
Quote:
Originally Posted by AlPe View Post
If I understand correctly, you are not invoking python, but simply calling "penelope.py" that your Windows shell opens as a text file.

Assuming you added the python bin to your $PATH***, try cd to that directory and then:

Code:
python penelope.py -p English-German -f en -t de
as written in http://www.albertopettarin.it/penelope.html. Note that you must set "de" as the "to" language, if your dictionary is indeed from English to German.



*** To test whether you added python to your $PATH, try opening the interactive console:
Code:
python
(you can exit writing "quit()" --- without quotes )
Hi, AlPe,

my $PATH look so:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel l\v1.0\;C:\Python27\
and when I write Code "python" into cmd, python appears on the screen (Python 2.7.3 is installed on my Notebook).

After writing in Command line: python penelope.py -p English-German -f en -t de
become this message:
"File "penelope.py", line 5 <!DOCTYPE html> SyntaxError: invalid syntax

Whitout "python" (only: penelope.py -p English-German -f en -t de) get "penelope.py" open and nothing else is happen...

I do something wrong. But, I don't know WHAT!?

It look so simple, but...
juh is offline   Reply With Quote