[pyassimp] Make it easier to import pyassimp

'import pyassimp' (instead of 'from pyassimp import core') is now sufficient
pull/22/head
Séverin Lemaignan 2012-11-07 22:56:54 +01:00 committed by Séverin Lemaignan
parent b00ee8b24a
commit fb280d7cf5
5 changed files with 8 additions and 7 deletions

View File

@ -25,7 +25,7 @@ substituted by assertions ...):
```python ```python
from pyassimp.core import * from pyassimp import *
scene = load('hello.3ds') scene = load('hello.3ds')
assert len(scene.meshes) assert len(scene.meshes)
@ -44,7 +44,7 @@ scene:
```python ```python
from pyassimp.core import * from pyassimp import *
scene = load('hello.3ds') scene = load('hello.3ds')
for c in scene.rootnode.children: for c in scene.rootnode.children:

View File

@ -0,0 +1 @@
from .core import *

View File

@ -15,7 +15,7 @@ Based on:
import sys import sys
import logging import logging
logger = logging.getLogger("underworlds.3d_viewer") logger = logging.getLogger("pyassimp")
gllogger = logging.getLogger("OpenGL") gllogger = logging.getLogger("OpenGL")
gllogger.setLevel(logging.WARNING) gllogger.setLevel(logging.WARNING)
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
@ -38,7 +38,7 @@ import math, random
import numpy import numpy
from numpy import linalg from numpy import linalg
from pyassimp import core as pyassimp import pyassimp
from pyassimp.postprocess import * from pyassimp.postprocess import *
from pyassimp.helper import * from pyassimp.helper import *

View File

@ -7,9 +7,9 @@ This module demonstrates the functionality of PyAssimp.
import os, sys import os, sys
import logging import logging
logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.INFO)
from pyassimp import core as pyassimp import pyassimp
def recur_node(node,level = 0): def recur_node(node,level = 0):
print(" " + "\t" * level + "- " + str(node)) print(" " + "\t" * level + "- " + str(node))

View File

@ -35,7 +35,7 @@ logging.basicConfig(level=logging.INFO)
import math import math
import numpy import numpy
from pyassimp import core as pyassimp import pyassimp
from pyassimp.postprocess import * from pyassimp.postprocess import *
from pyassimp.helper import * from pyassimp.helper import *