another grind.py bug

Frank,

~/xbiblio/csl/data/std $ python grind.py
Traceback (most recent call last):
File “grind.py”, line 192, in
os.chdir(mypath)
OSError: [Errno 2] No such file or directory: ‘’

If I add a path on the commandline, I get this:

$ python grind.py .
File “grind.py”, line 1
SyntaxError: Non-ASCII character ‘\xe2’ in file grind.py on line 1,
but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details

Bruce

Frank,

~/xbiblio/csl/data/std $ python grind.py
Traceback (most recent call last):
File “grind.py”, line 192, in
os.chdir(mypath)
OSError: [Errno 2] No such file or directory: ‘’

Not sure why you want to run the program with this syntax, but it will work now.

If I add a path on the commandline, I get this:

$ python grind.py .
File “grind.py”, line 1
SyntaxError: Non-ASCII character ‘\xe2’ in file grind.py on line 1,
but no encoding declared; see PEP 263 – Defining Python Source Code Encodings | peps.python.org
for details

Can’t reproduce this error (the command line above is identical to the other
that in the previous example).

Frank,

~/xbiblio/csl/data/std $ python grind.py
Traceback (most recent call last):
File “grind.py”, line 192, in
os.chdir(mypath)
OSError: [Errno 2] No such file or directory: ‘’

Not sure why you want to run the program with this syntax, but it will work now.

This is what the documentation suggests :wink:

If I add a path on the commandline, I get this:

$ python grind.py .
File “grind.py”, line 1
SyntaxError: Non-ASCII character ‘\xe2’ in file grind.py on line 1,
but no encoding declared; see PEP 263 – Defining Python Source Code Encodings | peps.python.org
for details

Can’t reproduce this error (the command line above is identical to the other
that in the previous example).

There was some funky character at position 1; I removed it.

Bruce