From: Thierry B. <svn...@pl...> - 2011-01-17 21:53:30
|
Author: tbenita Date: Mon Jan 17 21:52:19 2011 New Revision: 230593 Modified: collective.zopeedit/trunk/collective/zopeedit/zopeedit.py Log: [Win] move user's configuration file to Application Data Modified: collective.zopeedit/trunk/collective/zopeedit/zopeedit.py ============================================================================== --- collective.zopeedit/trunk/collective/zopeedit/zopeedit.py (original) +++ collective.zopeedit/trunk/collective/zopeedit/zopeedit.py Mon Jan 17 21:52:19 2011 @@ -417,6 +417,11 @@ if win32: # Get Application Data app_data = os.environ['APPDATA'] + # Create application folder in Application Data if it isn't here + if not os.path.isdir(os.path.expanduser(os.path.join(app_data, + 'collective.zopeedit'))): + os.makedirs(os.path.expanduser(os.path.join(app_data, + 'collective.zopeedit'))) # Check the AppData first and then the program dir config_path = os.path.expanduser(os.path.join(app_data , 'collective.zopeedit','ZopeEdit.ini')) |