On 8/22/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > > I started the process of testing this on Windows and found that Python > is only about 12MB installed. Compared to about 120MB for Ruby. My > thinking now is that all we need is a local copy of Python, a wrapper > script to get Django up and running and to launch a browser at > localhost:8000, and we're golden. > > I've gotten Django to run on Windows with Pysqlite2 and set up a basic > app. My next step is to see if I can build an executable to launch > Django. I've got a run.py script but it launches Python in a command > window. Unless I can answer a couple questions I may make a custom > program to handle this: > > 1. From within my run.py script can I tell it where the Python > executable is, similar to a Linux machine and its "/usr/bin/python" > script header? I'm looking for a relative path along the lines of > "Python24\python.exe".
You want sys.executable: http://docs.python.org/lib/module-sys.html#l2h-342 Also, did you look at Movable Python? For a few dollars per installation, it may save you some headaches: http://www.voidspace.org.uk/python/movpy/ > 2. Can I kick off Django via my run.py script but not have it throw up > a command window? I'm guessing maybe something with Tk/Tkinter but I'd > like to avoid those extra dependencies if I can. pythonw.exe (in your python install directory) is the same as python.exe, but without the console output. Alan. -- Alan Green [EMAIL PROTECTED] - http://bright-green.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---