changeset 29:b48c47af7801

Fix filepath bug in data.py (same as last pyweek)
author Neil Muller <drnlmuller@gmail.com>
date Sun, 11 Sep 2011 14:20:20 +0200
parents f9a415bb17ad
children cccf1675731c
files mamba/data.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mamba/data.py	Sun Sep 11 14:16:23 2011 +0200
+++ b/mamba/data.py	Sun Sep 11 14:20:20 2011 +0200
@@ -20,7 +20,7 @@
 def filepath(filename):
     '''Determine the path to a file in the data directory.
     '''
-    filename = os.path.join(filename.split('/'))
+    filename = os.path.join(*filename.split('/'))
     return os.path.join(data_dir, filename)