summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-08-17 10:36:22 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-08-17 10:36:22 -0400
commite33c6fab8b8dd8adb3d71af8517dfe45ba264cf7 (patch)
tree350af8a727bbb035214b6beea1915741119dd59c /scenes
parent1476f921813e60cf3749a5d03b9ed5cbf1951db6 (diff)
downloadchroma-e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7.tar.gz
chroma-e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7.tar.bz2
chroma-e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7.zip
import chroma modules from subpackages with import chroma.module_name
Diffstat (limited to 'scenes')
-rw-r--r--scenes/checkerboard.py16
1 files changed, 5 insertions, 11 deletions
diff --git a/scenes/checkerboard.py b/scenes/checkerboard.py
index d2a9ec8..4ad1120 100644
--- a/scenes/checkerboard.py
+++ b/scenes/checkerboard.py
@@ -1,15 +1,9 @@
-import os
-import sys
-
-dir = os.path.split(os.path.realpath(__file__))[0]
-sys.path.append(dir + '/..')
-
import numpy as np
-from itertoolset import *
-from geometry import Mesh, Solid, Geometry
-from optics import *
-from make import sphere
-from view import buildable
+from chroma.itertoolset import *
+from chroma.geometry import Mesh, Solid, Geometry
+from chroma.optics import *
+from chroma.make import sphere
+from chroma.view import buildable
@buildable('checkerboard_scene')
def build_checkerboard_scene(checkers_per_side=10, squares_per_checker=50):