]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Add module shaper.py
authorspo <sergey.pokhodenko@opencascade.com>
Tue, 20 Oct 2015 08:11:11 +0000 (11:11 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Wed, 21 Oct 2015 07:43:35 +0000 (10:43 +0300)
src/PythonAPI/CMakeLists.txt
src/PythonAPI/Test/TestShaper.py [new file with mode: 0644]
src/PythonAPI/shaper.py [new file with mode: 0644]

index 75c42711c9e62857080e175da21f531779f8aae6..02fe15075c112b0fd3d80f0b8ac077ff8e54f65f 100644 (file)
@@ -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 (file)
index 0000000..09c751b
--- /dev/null
@@ -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 (file)
index 0000000..b2eb4d4
--- /dev/null
@@ -0,0 +1,7 @@
+"""This package defines the Python API of the Shaper.
+"""
+
+# Main packages
+
+import geom
+import model