← Back to team overview

apport-hackers team mailing list archive

[Merge] lp:~yofel/apport/lp-657278 into lp:apport

 

Philip Muškovac has proposed merging lp:~yofel/apport/lp-657278 into lp:apport.

Requested reviews:
  Apport upstream developers (apport-hackers)
Related bugs:
  #657278 apport --save option does not recognise ~ as home folder
  https://bugs.launchpad.net/bugs/657278


wrap the path given to the --save option in os.path.expanduser() so ~ is recognized as the home folder.
-- 
https://code.launchpad.net/~yofel/apport/lp-657278/+merge/38070
Your team Apport upstream developers is requested to review the proposed merge of lp:~yofel/apport/lp-657278 into lp:apport.
=== modified file 'apport/ui.py'
--- apport/ui.py	2010-07-09 11:18:39 +0000
+++ apport/ui.py	2010-10-09 22:56:46 +0000
@@ -402,7 +402,7 @@
 
         if self.options.save:
             try:
-                f = open(self.options.save, 'w')
+                f = open(os.path.expanduser(self.options.save), 'w')
                 self.report.write(f)
                 f.close()
             except (IOError, OSError), e:


Follow ups