/[escript]/branches/4.0fordebian/site_scons/site_init.py
ViewVC logotype

Diff of /branches/4.0fordebian/site_scons/site_init.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 296 by jgs, Wed Nov 30 01:39:47 2005 UTC revision 297 by jgs, Fri Dec 2 04:57:48 2005 UTC
# Line 2  Line 2 
2    
3  import py_compile  import py_compile
4  import sys  import sys
5    import os
6    
7  # Code to build .pyc from .py  # Code to build .pyc from .py
8  def build_py(target, source, env):  def build_py(target, source, env):
9    py_compile.compile(str(source[0]), str(target[0]))    py_compile.compile(str(source[0]), str(target[0]))
10    return None    return None
11    
12    # Code to run unit_test executables
13    def runUnitTest(target, source, env):
14      app = str(source[0].abspath)
15      if not os.system(app):
16        open(str(target[0]),'w').write("PASSED\n")
17      return None

Legend:
Removed from v.296  
changed lines
  Added in v.297

  ViewVC Help
Powered by ViewVC 1.1.26