Skip to content

Commit ddef743

Browse files
author
hartsantler
committed
bump to version 0.8.7. fixed nodejs.py ensure that python2 is used. fixed server.py, allow old "pythonscript.js" alias for old html tests.
1 parent 20e923e commit ddef743

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##PythonJS 0.8.6
1+
##PythonJS 0.8.7
22

33
![logo](http://3.bp.blogspot.com/-BfPFXT-DF3A/UqKugvWVs7I/AAAAAAAAAj0/0Kon76_VDys/s400/pythonjs-0.8.6.png)
44

nodejs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python2
22
# NodeJS Wrapper for PythonJS
33
# by Brett Hartshorn - copyright 2013
44
# License: "New BSD"

tests/server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ def get(self, path=None):
241241
print('path', path)
242242
if not path:
243243
self.write( get_main_page() )
244-
elif path == 'pythonjs.js':
244+
elif path == 'pythonjs.js' or path=='pythonscript.js':
245+
if path == 'pythonscript.js':
246+
print('WARNING: pythonscript.js alias is deprecated - use pythonjs.js')
245247
data = open( PATHS['runtime'], 'rb').read()
246248
self.set_header("Content-Type", "text/javascript; charset=utf-8")
247249
self.set_header("Content-Length", len(data))

0 commit comments

Comments
 (0)