aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/main.cc')
-rw-r--r--ice40/main.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index 9fb6b0aa..073bbae2 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -16,6 +16,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*/
+
+#ifndef PYTHON_MODULE
+
#include <QApplication>
#include <boost/program_options.hpp>
#include <fstream>
@@ -263,3 +266,5 @@ int main(int argc, char *argv[])
deinit_python();
return rc;
}
+
+#endif