[BangPypers] Pygments help
Srinivas Reddy Thatiparthy
srinivas_thatiparthy at akebonosoft.com
Tue Jun 1 10:21:17 CEST 2010
>"pygmentize" is just a normal python script. You should have no problems
>running it under windows.
Well, it's a shell script with no extension , i opened it in an editor ,it
contains python code.see the below code.
#here goes the path to python interpreter,actually i overriden that data,so lost it...
import sys, pygments.cmdline
try:
sys.exit(pygments.cmdline.main(sys.argv))
except KeyboardInterrupt:
sys.exit(1)
so i changed this to ...
import sys, pygments.cmdline
if __name__=="__main__":
try:
sys.exit(pygments.cmdline.main(sys.argv))
except KeyboardInterrupt:
sys.exit(1)
and put the extension of the file to .py and tried to invoke it with the command line options given , i got errors then included the __init__.py file in that directory with no data.Still, i get TypeError.Is this a PATH problem?
or Am i doing anything wrong?
Well , i don't have internet to search ,otherwise i would have searched. :(
--
Srini T
_______________________________________________
BangPypers mailing list
BangPypers at python.org
http://mail.python.org/mailman/listinfo/bangpypers
More information about the BangPypers
mailing list