Browse files

add returnlist to wrapper, too

  • Loading branch information...
1 parent f073652 commit 59e698bc6608e4fc4cc2bf756996c44dd9f4b3af @eddyp eddyp committed Mar 18, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/appdirs.py
View
6 lib/appdirs.py
@@ -240,19 +240,21 @@ def user_log_dir(appname=None, appauthor=None, version=None, opinion=True):
class AppDirs(object):
"""Convenience wrapper for getting application dirs."""
- def __init__(self, appname, appauthor=None, version=None, roaming=False):
+ def __init__(self, appname, appauthor=None, version=None,
+ roaming=False, returnlist=False):
self.appname = appname
self.appauthor = appauthor
self.version = version
self.roaming = roaming
+ self.returnlist = returnlist
@property
def user_data_dir(self):
return user_data_dir(self.appname, self.appauthor,
version=self.version, roaming=self.roaming)
@property
def site_data_dir(self):
return site_data_dir(self.appname, self.appauthor,
- version=self.version)
+ version=self.version, returnlist=self.returnlist)
@property
def user_cache_dir(self):
return user_cache_dir(self.appname, self.appauthor,

0 comments on commit 59e698b

Please sign in to comment.