aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--becommands/new.py1
-rw-r--r--libbe/rcs.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/becommands/new.py b/becommands/new.py
index 9f0045d..8512e22 100644
--- a/becommands/new.py
+++ b/becommands/new.py
@@ -16,6 +16,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""Create a new bug"""
from libbe import cmdutil, bugdir
+import sys
__desc__ = __doc__
def execute(args, manipulate_encodings=True):
diff --git a/libbe/rcs.py b/libbe/rcs.py
index fd87f42..1024249 100644
--- a/libbe/rcs.py
+++ b/libbe/rcs.py
@@ -186,7 +186,7 @@ class RCS(object):
if binary == False:
f = codecs.open(os.path.join(self.rootdir, path), "r", self.encoding)
else:
- f = open(path, "rb")
+ f = open(os.path.join(self.rootdir, path), "rb")
contents = f.read()
f.close()
return contents