tblancher / pymazon

Automatically exported from code.google.com/p/pymazon
Other
0 stars 0 forks source link

pymazonrc should accept '~' for save_dir #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set 'save_dir: ~/music' in pymazonrc
2. Open the GUI

What is the expected output? What do you see instead?

I would expect /home/jramsay/music to show up in the 'Save Directory" box,
however it shows "~/music" and when I click the "Save Directory" button, it
falls back to CWD and not "~/music", probably because it is not using
os.path.expanduser on the save_dir setting value.

What version of the product are you using? On what operating system?

Pymazon-0.1.1, Linux, with Python-2.6
Also replicated with current hg repository.

Please provide any additional information below.

Patch attached, against current head of hg repository (I do expanduser on
amz_dir for good measure too)

Original issue reported on code.google.com by Jim.Ram...@gmail.com on 27 May 2010 at 6:29

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by SCColbert@gmail.com on 27 May 2010 at 10:47

GoogleCodeExporter commented 8 years ago
Fixed in source tree in settings.py.

Original comment by SCColbert@gmail.com on 27 May 2010 at 11:53