[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.5-27-ga4a34e7
Sandro Tosi
morph at debian.org
Mon Aug 10 18:27:50 UTC 2009
The following commit has been merged in the master branch:
commit 288237d49f3019b3e8e063b1679ee20af7319795
Author: chaica <chaica at ohmytux.com>
Date: Thu Jul 30 00:36:14 2009 +0200
allow the use of tilde and variables in attach file dialog
diff --git a/reportbug/ui/text_ui.py b/reportbug/ui/text_ui.py
index 68caa76..426340c 100644
--- a/reportbug/ui/text_ui.py
+++ b/reportbug/ui/text_ui.py
@@ -262,6 +262,8 @@ def get_password(prompt=None):
return getpass.getpass(prompt)
def FilenameCompleter(text, i):
+ text = os.path.expanduser(text)
+ text = os.path.expandvars(text)
paths = glob.glob(text+'*')
if not paths: return None
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list