diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-13 12:38:28 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-13 12:38:28 +0200 |
commit | 145c849596bdcd24f3b4e617eeb4ee06e1b93452 (patch) | |
tree | 243d63251d31498f4e92bfdae3ae0d0f087f9957 /common/pybindings.cc | |
parent | 4d7f18dd98a7ef9540a279a8e27cb9dbef355af7 (diff) | |
parent | de0918c28758b09f638e02ffc04fad989321da1b (diff) | |
download | nextpnr-145c849596bdcd24f3b4e617eeb4ee06e1b93452.tar.gz nextpnr-145c849596bdcd24f3b4e617eeb4ee06e1b93452.tar.bz2 nextpnr-145c849596bdcd24f3b4e617eeb4ee06e1b93452.zip |
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'common/pybindings.cc')
-rw-r--r-- | common/pybindings.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc index 7c43c84f..761d6571 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -140,7 +140,7 @@ static wchar_t *program; void init_python(const char *executable) { -#ifndef PYTHON_MODULE +#ifdef MAIN_EXECUTABLE program = Py_DecodeLocale(executable, NULL); if (program == NULL) { fprintf(stderr, "Fatal error: cannot decode executable filename\n"); @@ -162,7 +162,7 @@ void init_python(const char *executable) void deinit_python() { -#ifndef PYTHON_MODULE +#ifdef MAIN_EXECUTABLE Py_Finalize(); PyMem_RawFree(program); #endif |