diff options
author | David Shah <davey1576@gmail.com> | 2018-06-08 11:17:04 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-08 11:17:04 +0200 |
commit | c16a971c0fe5980a2d6da23e7d3d6d917cb9dc67 (patch) | |
tree | 7258aa4dbe3ff282ecc3a8ed12ff088a06c35a07 /dummy/main.cc | |
parent | 7f330af9f397ab121e11723bdf7b976630b7e450 (diff) | |
download | nextpnr-c16a971c0fe5980a2d6da23e7d3d6d917cb9dc67.tar.gz nextpnr-c16a971c0fe5980a2d6da23e7d3d6d917cb9dc67.tar.bz2 nextpnr-c16a971c0fe5980a2d6da23e7d3d6d917cb9dc67.zip |
python: Fixing builds as importable module
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'dummy/main.cc')
-rw-r--r-- | dummy/main.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dummy/main.cc b/dummy/main.cc index cc6addb5..4de749b7 100644 --- a/dummy/main.cc +++ b/dummy/main.cc @@ -17,6 +17,8 @@ * */ +#ifndef PYTHON_MODULE + #include <QApplication> #include "design.h" #include "mainwindow.h" @@ -31,3 +33,5 @@ int main(int argc, char *argv[]) return a.exec(); } + +#endif |