Merge lp:~yofel/apport/lp-657278 into lp:~apport-hackers/apport/trunk

Proposed by Philip Muškovac
Status: Merged
Merged at revision: 1794
Proposed branch: lp:~yofel/apport/lp-657278
Merge into: lp:~apport-hackers/apport/trunk
Diff against target: 12 lines (+1/-1)
1 file modified
apport/ui.py (+1/-1)
To merge this branch: bzr merge lp:~yofel/apport/lp-657278
Reviewer Review Type Date Requested Status
Apport upstream developers Pending
Review via email: mp+38070@code.launchpad.net

Description of the change

wrap the path given to the --save option in os.path.expanduser() so ~ is recognized as the home folder.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'apport/ui.py'
2--- apport/ui.py 2010-07-09 11:18:39 +0000
3+++ apport/ui.py 2010-10-09 22:56:46 +0000
4@@ -402,7 +402,7 @@
5
6 if self.options.save:
7 try:
8- f = open(self.options.save, 'w')
9+ f = open(os.path.expanduser(self.options.save), 'w')
10 self.report.write(f)
11 f.close()
12 except (IOError, OSError), e:

Subscribers

People subscribed via source and target branches