summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-17 14:38:45 -0400
committerStan Seibert <stan@mtrr.org>2011-08-17 14:38:45 -0400
commitb88e37c5c7de5411fb003a3c146a1b697b5813ad (patch)
treece6b6bc992a901da7e83097bfe22d2b1f3ced09f /src
parentee07d0165f86ef6942bffd6ae88057926ab4e775 (diff)
parent11210ce25a543875eb51cff8efc06e7f02984214 (diff)
downloadchroma-b88e37c5c7de5411fb003a3c146a1b697b5813ad.tar.gz
chroma-b88e37c5c7de5411fb003a3c146a1b697b5813ad.tar.bz2
chroma-b88e37c5c7de5411fb003a3c146a1b697b5813ad.zip
merge
Diffstat (limited to 'src')
-rw-r--r--src/__init__.py9
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()