Translating Python2 to Python3: "Cannot import name 'wmldata'"

The project has, briefly, the following structure: /wmlvalidator.py /wesnoth/__init__.py /wesnoth/wmlgrammar.py /wesnoth/wmlparser.py /wesnoth/wmldata.py In /wmlvalidator.py script, I...

Escape substituted path in SCons

In this piece of code from Wesnoth build the $TESTFILE variable is substituted with the given path. But on Windows path becomes invalid, because by default SCons subst() doesn't escape backslashes...