Converting a python file into a JS file

477 views Asked by At

I've been trying to figure out how to convert python files into JavaScript files.

I downloaded the latest pyjamas and I installed it in my c:\Python26\Lib\site-packages folder. I'm running Python 2.6 on Windows 7.

1

There are 1 answers

1
icktoofay On BEST ANSWER

It looks like you should be able to translate a Python file to JavaScript like so:

python -m pyjs.pyjampiler -w directory/of/source -r main.py -o /output/path.js