Revision 521, 0.5 kB
(checked in by arnonym, 17 years ago)
|
Move the helpers into their own directory (named "admin") so they don't clutter the base-dir
|
Line | |
---|
1 |
#! /usr/bin/python |
---|
2 |
|
---|
3 |
def pyuic_action( target, source, env ): |
---|
4 |
print "'"+str( target[0] )+"'" |
---|
5 |
print "'"+str( source[0] )+"'" |
---|
6 |
print env.Command( str( target[0] ), str( source[0] ), action = "pyuic $SOURCE > $TARGET" ) |
---|
7 |
return 0 |
---|
8 |
|
---|
9 |
def pyuic_string( target, source, env ): |
---|
10 |
return "building '%s' from '%s'" % ( str(target[0]), str( source[0] ) ) |
---|
11 |
|
---|
12 |
def generate( env, **kw ): |
---|
13 |
action = env.Action( pyuic_action, pyuic_string ) |
---|
14 |
env['BUILDERS']['PyUIC'] = env.Builder( action=action, src_suffix=".ui", single_source=True ) |
---|
15 |
|
---|
16 |
def exists( env ): |
---|
17 |
return 1 |
---|
18 |
|
---|