Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion push by winstonw...@gmail.com - Adjust make.py usage message. on 2012-08-03 22:24 GMT
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pyg...@googlecode.com  
View profile  
 More options Aug 3 2012, 6:24 pm
From: pyg...@googlecode.com
Date: Fri, 03 Aug 2012 22:24:35 +0000
Local: Fri, Aug 3 2012 6:24 pm
Subject: [pyglet] push by winstonw...@gmail.com - Adjust make.py usage message. on 2012-08-03 22:24 GMT
Revision: 49cf0fc08fe6
Author:   Winston W <winst...@stratolab.com>
Date:     Fri Aug  3 15:23:48 2012
Log:      Adjust make.py usage message.
http://code.google.com/p/pyglet/source/detail?r=49cf0fc08fe6

Modified:
  /make.py

=======================================
--- /make.py    Sat Jun 23 22:11:39 2012
+++ /make.py    Fri Aug  3 15:23:48 2012
@@ -24,12 +24,15 @@

webbrowser.open('file://'+op.abspath(DOC_DIR)+'/_build/html/index.html')

  if __name__=='__main__':
-    avail_cmds = dict(filter(lambda (k,v): not k.startswith('_') and  
inspect.isfunction(v),
+    avail_cmds = dict(filter(lambda (k,v): not k.startswith('_')
+                             and inspect.isfunction(v)
+                             and v.__module__ == '__main__',
                               locals().items()))
      try:
          cmd = avail_cmds[sys.argv[1]]
      except Exception, exc:
          print type(exc).__name__, ':', exc
          print 'Usage:', op.basename(sys.argv[0]), '<command>'
-        print 'where commands are:', ', '.join(avail_cmds)
-    cmd()
+        print '  where commands are:', ', '.join(avail_cmds)
+    else:
+        cmd()


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.