aboutsummaryrefslogtreecommitdiffstats
path: root/common/pybindings.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-27 12:18:52 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-27 12:18:52 +0200
commitb0b16a344a951c7144783f799232a1b9d85ddc8a (patch)
tree350df2d246c261be1fe36ad5573edad1fe2f4286 /common/pybindings.cc
parent87a5b7212667daa55a72f62c35cc248bdce2c744 (diff)
downloadnextpnr-b0b16a344a951c7144783f799232a1b9d85ddc8a.tar.gz
nextpnr-b0b16a344a951c7144783f799232a1b9d85ddc8a.tar.bz2
nextpnr-b0b16a344a951c7144783f799232a1b9d85ddc8a.zip
Improving post-ripup placement in the legaliser
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/pybindings.cc')
-rw-r--r--common/pybindings.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc
index 02c39fa3..6441dc01 100644
--- a/common/pybindings.cc
+++ b/common/pybindings.cc
@@ -129,7 +129,7 @@ BOOST_PYTHON_MODULE(MODULE_NAME)
static wchar_t *program;
-void init_python(const char *executable,bool first)
+void init_python(const char *executable, bool first)
{
#ifdef MAIN_EXECUTABLE
program = Py_DecodeLocale(executable, NULL);
@@ -138,8 +138,7 @@ void init_python(const char *executable,bool first)
exit(1);
}
try {
- if (first)
- {
+ if (first) {
PyImport_AppendInittab(TOSTRING(MODULE_NAME), PYINIT_MODULE_NAME);
emb::append_inittab();
}