Kevin Dangoor wrote:
> Also, in TurboGears 0.8 and if you have that directory on your path,
> you'll be able to run
> 
> tg-admin quickstart
> 
> without the "python" at the front, because setuptools creates .exe
> wrappers for the scripts now.

Hey, Linux users like some comfort to :)  Would you mind to make
project-start.py executable by default, so we can run ./foobar-start.py
instead of python foobar-start.py?

Fabian

(patch proposal attached)
Index: command/quickstart.py
===================================================================
--- command/quickstart.py	(Revision 36)
+++ command/quickstart.py	(Arbeitskopie)
@@ -6,6 +6,7 @@
 import pkg_resources
 import re
 import os
+import stat
 import optparse
 import sys
 
@@ -51,6 +52,9 @@
             output = open(newfile, "w")
             output.write(template % self.__dict__)
             output.close()
+            if newfile.endswith("-start.py"):
+                oldmode = os.stat(newfile).st_mode
+                os.chmod(newfile, oldmode | stat.S_IXUSR)
     
     def run(self):
         "Quickstarts the new project."

Reply via email to