Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make 'python appdirs.py' show new functions and defaults

  • Loading branch information...
commit b447289ea32fbb96acf3d2d574dd4513fbc3a3c9 1 parent b842aad
Sridhar Ratnakumar authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 appdirs.py
View
11 appdirs.py
@@ -456,8 +456,9 @@ def _get_win_folder_with_ctypes(csidl_name):
appname = "MyApp"
appauthor = "MyCompany"
- props = ("user_data_dir", "site_data_dir", "user_cache_dir",
- "user_log_dir")
+ props = ("user_data_dir", "site_data_dir",
+ "user_config_dir", "site_config_dir",
+ "user_cache_dir", "user_log_dir")
print("-- app dirs (without optional 'version')")
dirs = AppDirs(appname, appauthor, version="1.0")
@@ -468,3 +469,9 @@ def _get_win_folder_with_ctypes(csidl_name):
dirs = AppDirs(appname, appauthor)
for prop in props:
print("%s: %s" % (prop, getattr(dirs, prop)))
+
+ print("\n-- app dirs (with optional 'appauthor')")
+ dirs = AppDirs(appname)
+ for prop in props:
+ print("%s: %s" % (prop, getattr(dirs, prop)))
+
Please sign in to comment.
Something went wrong with that request. Please try again.