Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit b447289ea32fbb96acf3d2d574dd4513fbc3a3c9 1 parent b842aad
Sridhar Ratnakumar authored

Showing 1 changed file with 9 additions and 2 deletions. Show diff stats Hide diff stats

  1. 11  appdirs.py
11  appdirs.py
@@ -456,8 +456,9 @@ def _get_win_folder_with_ctypes(csidl_name):
456 456
     appname = "MyApp"
457 457
     appauthor = "MyCompany"
458 458
 
459  
-    props = ("user_data_dir", "site_data_dir", "user_cache_dir",
460  
-        "user_log_dir")
  459
+    props = ("user_data_dir", "site_data_dir",
  460
+             "user_config_dir", "site_config_dir",
  461
+             "user_cache_dir", "user_log_dir")
461 462
 
462 463
     print("-- app dirs (without optional 'version')")
463 464
     dirs = AppDirs(appname, appauthor, version="1.0")
@@ -468,3 +469,9 @@ def _get_win_folder_with_ctypes(csidl_name):
468 469
     dirs = AppDirs(appname, appauthor)
469 470
     for prop in props:
470 471
         print("%s: %s" % (prop, getattr(dirs, prop)))
  472
+
  473
+    print("\n-- app dirs (with optional 'appauthor')")
  474
+    dirs = AppDirs(appname)
  475
+    for prop in props:
  476
+        print("%s: %s" % (prop, getattr(dirs, prop)))
  477
+

0 notes on commit b447289

Please sign in to comment.
Something went wrong with that request. Please try again.