pisi-build'in actions betiği içinden fonksiyonları çağırmak için en uygun yöntemi bu sanki

This commit is contained in:
S.Çağlar Onur
2005-06-13 21:31:45 +00:00
parent 13e8e72a4a
commit 974aa33778
+6 -2
View File
@@ -13,5 +13,9 @@ if __name__ == "__main__":
''' WILLBE: pisi-build call action script after entered the build directory '''
os.chdir( config.tmp_dir() + '/' + package_name + '/build' )
execfile( sys.argv[1] )
locals = globals = {}
exec compile( open( sys.argv[1] ).read(), "error", "exec" ) in locals,globals
locals['src_setup']()
locals['src_build']()
locals['src_install']()