From e9ddcb81ff60a32b1b0dffbff65bbd92f6ce9b6e Mon Sep 17 00:00:00 2001 From: spo Date: Tue, 3 Nov 2015 15:00:56 +0300 Subject: [PATCH] Move MakeBrick*.py to examples module for availability for testing. --- src/PythonAPI/CMakeLists.txt | 2 +- src/PythonAPI/Test/TestMakeBrick1.py | 2 +- src/PythonAPI/Test/TestMakeBrick2.py | 2 +- src/PythonAPI/Test/TestMakeBrick3.py | 2 +- src/PythonAPI/{ => examples}/MakeBrick1.py | 0 src/PythonAPI/{ => examples}/MakeBrick2.py | 0 src/PythonAPI/{ => examples}/MakeBrick3.py | 0 src/PythonAPI/examples/__init__.py | 0 8 files changed, 4 insertions(+), 4 deletions(-) rename src/PythonAPI/{ => examples}/MakeBrick1.py (100%) rename src/PythonAPI/{ => examples}/MakeBrick2.py (100%) rename src/PythonAPI/{ => examples}/MakeBrick3.py (100%) create mode 100644 src/PythonAPI/examples/__init__.py diff --git a/src/PythonAPI/CMakeLists.txt b/src/PythonAPI/CMakeLists.txt index dc1ee767a..376853dfb 100644 --- a/src/PythonAPI/CMakeLists.txt +++ b/src/PythonAPI/CMakeLists.txt @@ -3,7 +3,7 @@ SET(CMAKE_AUTOMOC ON) -INSTALL(DIRECTORY extension geom model DESTINATION PythonAPI) +INSTALL(DIRECTORY extension geom model examples DESTINATION PythonAPI) INSTALL(FILES shaper.py DESTINATION PythonAPI) # --------- Unit tests ----------- diff --git a/src/PythonAPI/Test/TestMakeBrick1.py b/src/PythonAPI/Test/TestMakeBrick1.py index 237ae03aa..2225919c0 100644 --- a/src/PythonAPI/Test/TestMakeBrick1.py +++ b/src/PythonAPI/Test/TestMakeBrick1.py @@ -1,6 +1,6 @@ import unittest -import MakeBrick1 +import examples.MakeBrick1 if __name__ == "__main__": unittest.main() diff --git a/src/PythonAPI/Test/TestMakeBrick2.py b/src/PythonAPI/Test/TestMakeBrick2.py index f903e907e..21ea7263e 100644 --- a/src/PythonAPI/Test/TestMakeBrick2.py +++ b/src/PythonAPI/Test/TestMakeBrick2.py @@ -1,6 +1,6 @@ import unittest -import MakeBrick2 +import examples.MakeBrick2 if __name__ == "__main__": unittest.main() diff --git a/src/PythonAPI/Test/TestMakeBrick3.py b/src/PythonAPI/Test/TestMakeBrick3.py index 34ba01b16..bbdb4a989 100644 --- a/src/PythonAPI/Test/TestMakeBrick3.py +++ b/src/PythonAPI/Test/TestMakeBrick3.py @@ -1,6 +1,6 @@ import unittest -import MakeBrick3 +import examples.MakeBrick3 if __name__ == "__main__": unittest.main() diff --git a/src/PythonAPI/MakeBrick1.py b/src/PythonAPI/examples/MakeBrick1.py similarity index 100% rename from src/PythonAPI/MakeBrick1.py rename to src/PythonAPI/examples/MakeBrick1.py diff --git a/src/PythonAPI/MakeBrick2.py b/src/PythonAPI/examples/MakeBrick2.py similarity index 100% rename from src/PythonAPI/MakeBrick2.py rename to src/PythonAPI/examples/MakeBrick2.py diff --git a/src/PythonAPI/MakeBrick3.py b/src/PythonAPI/examples/MakeBrick3.py similarity index 100% rename from src/PythonAPI/MakeBrick3.py rename to src/PythonAPI/examples/MakeBrick3.py diff --git a/src/PythonAPI/examples/__init__.py b/src/PythonAPI/examples/__init__.py new file mode 100644 index 000000000..e69de29bb -- 2.39.2