main logo
Subject: [dabo-dev] dabo Commit 3149
Author: Paul McNett

Posted: 2007/05/31 11:23:24
 
View Entire Thread
New Search


dabo Commit
Revision 3149
Date: 2007-05-31 09:23:23 -0700 (Thu, 31 May 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3149

Changed:
U trunk/dabo/lib/utils.py

Log:
Removed debugging line and extra whitespace.


Diff:
Modified: trunk/dabo/lib/utils.py
===================================================================
--- trunk/dabo/lib/utils.py 2007-05-31 16:18:49 UTC (rev 3148)
+++ trunk/dabo/lib/utils.py 2007-05-31 16:23:23 UTC (rev 3149)
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+
# This serves as a catch-all script for common utilities that may be used
# in lots of places throughout Dabo. Typically, to use a function 'foo()' in
# this file, add the following import statement to your script:
@@ -111,19 +112,17 @@
# First, on Windows, try the Windows API function:
if shell and shellcon:
dd = shell.SHGetFolderPath(0, shellcon.CSIDL_APPDATA, 0, 0)
- print "!", dd
+
if dd is None and sys.platform == "win32":
# We are on Windows, but win32com wasn't installed. Look for the APPDATA
# environmental variable:
dd = os.environ.get("APPDATA")

-
if dd is None:
# We are either not on Windows, or we couldn't locate the directory for
# whatever reason. Try going off the home directory:
dd = getUserHomeDirectory()

-
if dd is not None:
dd = os.path.join(dd, appName)
if not os.path.exists(dd):





 
©2007 Paul McNett
<-- Prior Message New Search Next Message -->