python module definition

This commit is contained in:
Joachim Schoeberl 2014-10-01 10:31:22 +00:00
parent 1d99bd274b
commit ceb0bcf128
4 changed files with 23 additions and 0 deletions

3
python/Makefile.am Normal file
View File

@ -0,0 +1,3 @@
python_PYTHON = __init__.py meshing.py csg.py

6
python/__init__.py Normal file
View File

@ -0,0 +1,6 @@
from os import environ
from sys import path
path.append(environ['NETGENDIR']+'/../lib')
del environ
del path

8
python/csg.py Normal file
View File

@ -0,0 +1,8 @@
try:
# Linux
from libcsg.csg import *
from libmesh.meshing import *
except:
# Windows
from nglib.csg import *
from nglib.meshing import *

6
python/meshing.py Normal file
View File

@ -0,0 +1,6 @@
try:
# Linux
from libmesh.meshing import *
except:
# Windows
from nglib.meshing import *