[Scons-users] SConstruct return value

Nikola Radovanovic nikola.radovanovic at schneider-electric-dms.com
Sat Mar 1 03:05:52 EST 2014


thank you very much!

best regards

On 02/28/2014 04:11 PM, Dirk Bächle wrote:
Hi Nikola,

On 28.02.2014 13:49, Nikola Radovanovic wrote:
will Exit(1) do the job?


a simple Exit() stops processing right at the input phase, while you're reading the SConstruct/SConscript files. This would mean that no files can get built.

Instead, you want to execute some piece of code "after" the actual SCons run has finished...so the atexit handler is probably what you're looking for.
Check

http://stackoverflow.com/questions/8901296/how-do-i-run-some-code-after-every-build-in-scons

for a basic example, in the registered method you could then do a sys.exit(0) or similar. Haven't tested this though...

Best regards,

Dirk

On 02/28/2014 12:55 PM, Nikola Radovanovic wrote:
Hi all,
for some reasons (jenkins integration - dont ask me why), i need to fake result for one SConstruct - i want to always get 'build success' in SConstruct. is this possible?

thanks in advance
--
__________________________________________________________________________________________________________________




_______________________________________________
Scons-users mailing list
Scons-users at scons.org<mailto:Scons-users at scons.org>
http://four.pairlist.net/mailman/listinfo/scons-users


--
__________________________________________________________________________________________________________________

Nikola Radovanovic | Schneider Electric DMS NS | Smart Grid IT | SERBIA | CPASv2 team deputy
Phone: +381 (0)21 488 3633 | Fax: +381 (0)21 488 3789 | Mobile: +381 (0)64 29 74 528
Email: nikola.radovanovic at schneider-electric-dms.com<mailto:nikola.radovanovic at schneider-electric-dms.com> | Site: www.schneider-electric-dms.com<http://www.schneider-electric-dms.com/> | Address: Narodnog fronta 25A-D, 21000 Novi Sad
*** Please consider the environment before printing this e-mail

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140301/039e2456/attachment.htm


More information about the Scons-users mailing list