From e8835691560ee357bbe5371d6cd3af94c24d2ccc Mon Sep 17 00:00:00 2001 From: spo Date: Tue, 20 Oct 2015 11:11:11 +0300 Subject: [PATCH] Add module shaper.py --- src/PythonAPI/CMakeLists.txt | 2 ++ src/PythonAPI/Test/TestShaper.py | 6 ++++++ src/PythonAPI/shaper.py | 7 +++++++ 3 files changed, 15 insertions(+) create mode 100644 src/PythonAPI/Test/TestShaper.py create mode 100644 src/PythonAPI/shaper.py diff --git a/src/PythonAPI/CMakeLists.txt b/src/PythonAPI/CMakeLists.txt index 75c42711c..02fe15075 100644 --- a/src/PythonAPI/CMakeLists.txt +++ b/src/PythonAPI/CMakeLists.txt @@ -4,11 +4,13 @@ SET(CMAKE_AUTOMOC ON) INSTALL(DIRECTORY extension geom model DESTINATION PythonAPI) +INSTALL(FILES shaper.py DESTINATION PythonAPI) # --------- Unit tests ----------- INCLUDE(UnitTest) ADD_UNIT_TESTS( + TestShaper.py TestModel.py TestSketcherAddPoint.py TestSketcherAddLine.py diff --git a/src/PythonAPI/Test/TestShaper.py b/src/PythonAPI/Test/TestShaper.py new file mode 100644 index 000000000..09c751bd8 --- /dev/null +++ b/src/PythonAPI/Test/TestShaper.py @@ -0,0 +1,6 @@ +import unittest +from shaper import model +from shaper import geom + +if __name__ == "__main__": + unittest.main() diff --git a/src/PythonAPI/shaper.py b/src/PythonAPI/shaper.py new file mode 100644 index 000000000..b2eb4d419 --- /dev/null +++ b/src/PythonAPI/shaper.py @@ -0,0 +1,7 @@ +"""This package defines the Python API of the Shaper. +""" + +# Main packages + +import geom +import model -- 2.39.2