sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Change Brython file extension #104

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Many webservers execute python files to run a web application. 
This means that Brython files can't be loaded by the browser thru an ajax 
request because the .py file will be executed by the server. 
A simple solution is to use another extension for Brython files. 
.pyb for example.

Original issue reported on code.google.com by d...@famillepinault.fr on 18 Mar 2013 at 9:19

GoogleCodeExporter commented 9 years ago
Additionnaly, this could help differenciate python files run on the server from 
Brython files run on the Browser.

Original comment by d...@famillepinault.fr on 18 Mar 2013 at 9:21

GoogleCodeExporter commented 9 years ago
Good point Nicolas, I opened a discussion on the Google group to discuss this 
suggestion

Original comment by pierre.q...@gmail.com on 20 Mar 2013 at 9:55

GoogleCodeExporter commented 9 years ago
However py extension should be preserved. In my case I run unit tests on 
brython using desktop Python before uploading to server

Original comment by ca...@nce.ufrj.br on 21 Mar 2013 at 10:09

GoogleCodeExporter commented 9 years ago
use .bλ instead of .py :)

Original comment by kovg...@gmail.com on 21 Mar 2013 at 8:13