Merge lp:~sil/cheers/xdg-folders into lp:~cheers/cheers/trunk

Proposed by Stuart Langridge
Status: Merged
Merged at revision: 22
Proposed branch: lp:~sil/cheers/xdg-folders
Merge into: lp:~cheers/cheers/trunk
Diff against target: 18 lines (+2/-2)
1 file modified
cheers/config.py (+2/-2)
To merge this branch: bzr merge lp:~sil/cheers/xdg-folders
Reviewer Review Type Date Requested Status
Manish Sinha (मनीष सिन्हा) Approve
Review via email: mp+39914@code.launchpad.net

Description of the change

use xdg.BaseDirectory instead of hardcoding .local :-)

To post a comment you must log in.
Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote :

A simple change. It works.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'cheers/config.py'
--- cheers/config.py 2010-10-27 19:05:54 +0000
+++ cheers/config.py 2010-11-03 00:03:46 +0000
@@ -22,12 +22,12 @@
2222
23import datastore23import datastore
24import os24import os
25import xdg.BaseDirectory
2526
26CHEERS_BUS_NAME = "org.gnome.cheers"27CHEERS_BUS_NAME = "org.gnome.cheers"
27CHEERS_OBJECT_PATH = "/org/gnome/cheers/trophies"28CHEERS_OBJECT_PATH = "/org/gnome/cheers/trophies"
2829
29home_folder = os.path.expanduser("~")30cheers_data_path = xdg.BaseDirectory.save_data_path("cheers")
30cheers_data_path = os.path.join(home_folder, ".local", "share", "cheers")
3131
32trophy_dump_path = os.path.join(cheers_data_path, "trophies")32trophy_dump_path = os.path.join(cheers_data_path, "trophies")
33global_trophy_path = "/usr/share/cheers/trophies"33global_trophy_path = "/usr/share/cheers/trophies"

Subscribers

People subscribed via source and target branches