question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SCons builder broken since v3.0

See original GitHub issue

The builder still uses -e and -v to detect extension/variable file. Maybe -d, “define”, would have been better for inline variables.

Revert -V and -E back to small letters?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kblomqvistcommented, Sep 10, 2017

I also decided to pass the variable to ast.literal_eval() to support Python literal or container kind of inputs:

yasha --var=1 template.j2                                   # type(var) == int
yasha --var="('foo','bar')" template.j2                     # type(var) == tuple
yasha --var="{'muffin':' lolz', 'foo': 'kitty'}" template.j2  # type(var) == dict
1reaction
dfeecommented, Sep 10, 2017

How about TEMPLATE_VARIABLES?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SCons 3.0.0
SCons performs complete variable substitution on $*COMSTR variables, so they have access to all of the standard variables like $TARGET $SOURCES , etc.,...
Read more >
SCons 4.4.0
Since the latest scons only runs on Python 3, to get the current version you should choose the Python 3 package.
Read more >
Builders - SCons
Installs one or more source files or directories to specific names, allowing changing a file or directory name as part of the installation....
Read more >
Appendix B. Builders - SCons
The Command "Builder" is actually a function that looks like a Builder, but takes a required third argument, which is the action to...
Read more >
SCons 3.0.0
scons knows how to fetch files automatically from SCCS or RCS subdirectories using SCCS, RCS or BitKeeper. scons is normally executed in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found