mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
python module definition
This commit is contained in:
parent
1d99bd274b
commit
ceb0bcf128
3
python/Makefile.am
Normal file
3
python/Makefile.am
Normal file
@ -0,0 +1,3 @@
|
||||
python_PYTHON = __init__.py meshing.py csg.py
|
||||
|
||||
|
6
python/__init__.py
Normal file
6
python/__init__.py
Normal 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
8
python/csg.py
Normal 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
6
python/meshing.py
Normal file
@ -0,0 +1,6 @@
|
||||
try:
|
||||
# Linux
|
||||
from libmesh.meshing import *
|
||||
except:
|
||||
# Windows
|
||||
from nglib.meshing import *
|
Loading…
Reference in New Issue
Block a user