From 054b093ef7b3b594054e9d010599d32912850a2b Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Fri, 10 Aug 2012 15:59:22 +0200
Subject: [PATCH] More DRY

---
 replay/db/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/replay/db/__init__.py b/replay/db/__init__.py
index f3d4b53..3aa485c 100644
--- a/replay/db/__init__.py
+++ b/replay/db/__init__.py
@@ -18,7 +18,7 @@ def version():
   '''Returns the current version number defined in setup.py (DRY)'''
 
   import pkg_resources  # part of setuptools
-  return pkg_resources.require('bob.db.replay')[0].version
+  return pkg_resources.require('bob.db.%s' % dbname())[0].version
 
 def location():
   '''Returns the directory that contains the data'''
-- 
GitLab