Permalink
Browse files

Fix a problem when running the development server on Windows.

The development server was assuming it could invoke the setup.py and
manage.py scripts. This didn't work on Windows. It now invokes python
specifically.

Patch by Hongbin Lu.
Reviewed at http://reviews.reviewboard.org/r/1885/
  • Loading branch information...
Hongbin Lu authored and chipx86 committed Oct 31, 2010
1 parent 15d4281 commit e7c2cbe987caa3e9fe2b1bfb19fe62ce4f237f17
Showing with 3 additions and 2 deletions.
  1. +1 −0 AUTHORS
  2. +2 −2 contrib/internal/devserver.py
View
@@ -63,6 +63,7 @@ Contributors:
* Herve Schnitzler
* Hideya OHASHI
* Hiroshi Funai
+ * Hongbin Lu
* Jacob Farkas
* Jamie Scheinblum
* Jeeva Suresh
@@ -64,10 +64,10 @@ def main():
# Build ReviewBoard.egg-info if it doesn't already exist
if not os.path.exists('ReviewBoard.egg-info'):
- os.system("./setup.py egg_info")
+ os.system("python ./setup.py egg_info")
# And now just boot up the server
- os.system('./reviewboard/manage.py runserver 0.0.0.0:%s'
+ os.system('python ./reviewboard/manage.py runserver 0.0.0.0:%s'
% server_port)
if __name__ == "__main__":

0 comments on commit e7c2cbe

Please sign in to comment.