[Ohrrpgce] Possible bug in SConscript
Seth Hetu
seth.hetu at gmail.com
Mon Jun 24 12:19:25 PDT 2013
Hello all,
Line 12 in wip/SConscript reads:
FBFLAGS = os.environ.get ('FBFLAGS', []) + ['-mt']
From my understanding of Python, this will never work unless
FBFLAGS is null. Otherwise, you get:
'some_string' + ['-mt']
...and Python complains that you can't concatenate an array to a string.
I think this is probably the easiest fix:
FBFLAGS = os.environ.get ('FBFLAGS', '').split() + ['-mt']
...but this might erase spaces in path names. I tried:
FBFLAGS = [os.environ.get ('FBFLAGS', '')] + ['-mt']
...but that doesn't work right either.
FYI, I am setting FBFLAGS like so (in a script somewhere), so if I'm
using it wrongly let me know:
export FBFLAGS="-i $(dirname $FBC)/../include/freebasic"
-->Seth
More information about the Ohrrpgce
mailing list