Module: deluge
Branch: master
Commit: 15ce2b71f9098563a6c1806292b925d6fe0bd835

Author: Chase Sterling <[email protected]>
Date:   Sun Aug 22 15:26:51 2010 -0400

Moved xdg import so it is not called on Windows, where it is unused. fixes #1343

---

 deluge/common.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/deluge/common.py b/deluge/common.py
index 0cde41b..9208a84 100644
--- a/deluge/common.py
+++ b/deluge/common.py
@@ -63,7 +63,6 @@ if not hasattr(json, "dumps"):
     json.load = load
 
 import pkg_resources
-import xdg, xdg.BaseDirectory
 import gettext
 import locale
 
@@ -150,6 +149,7 @@ def get_default_config_dir(filename=None):
         else:
             return os.path.join(os.environ.get("APPDATA"), "deluge")
     else:
+        import xdg.BaseDirectory
         if filename:
             return os.path.join(xdg.BaseDirectory.save_config_path("deluge"), 
filename)
         else:

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to