diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-08-17 10:36:22 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-08-17 10:36:22 -0400 |
commit | e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7 (patch) | |
tree | 350af8a727bbb035214b6beea1915741119dd59c /src | |
parent | 1476f921813e60cf3749a5d03b9ed5cbf1951db6 (diff) | |
download | chroma-e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7.tar.gz chroma-e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7.tar.bz2 chroma-e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7.zip |
import chroma modules from subpackages with import chroma.module_name
Diffstat (limited to 'src')
-rw-r--r-- | src/__init__.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/__init__.py b/src/__init__.py index 865d612..f2f5215 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1,6 +1,7 @@ -import os +from os.path import dirname -dir = os.path.split(os.path.realpath(__file__))[0] +with open(dirname(__file__) + '/kernel.cu') as f: + kernel = f.read() -kernel = open(dir + '/kernel.cu').read() -daq = open(dir + '/daq.cu').read() +with open(dirname(__file__) + '/daq.cu') as f: + daq = f.read() |