Changeset 1036


Ignore:
Timestamp:
08/30/12 15:20:51 (5 years ago)
Author:
jjr8
Message:

Fixed more Python 2.7 / ArcGIS 10.1 compatibility problems.

Location:
MGET/Branches/Jason/PythonPackage/src/GeoEco
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MGET/Branches/Jason/PythonPackage/src/GeoEco/ArcGIS.py

    r1026 r1036  
    380380                    hkey = win32api.RegOpenKey(win32con.HKEY_LOCAL_MACHINE, 'SOFTWARE\\ESRI\\ArcInfo\\Desktop\\8.0') 
    381381                except: 
    382                     hkey = win32api.RegOpenKey(win32con.HKEY_LOCAL_MACHINE, 'SOFTWARE\\ESRI\\Desktop10.0') 
     382                    try: 
     383                        hkey = win32api.RegOpenKey(win32con.HKEY_LOCAL_MACHINE, 'SOFTWARE\\ESRI\\Desktop10.0') 
     384                    except: 
     385                        hkey = win32api.RegOpenKey(win32con.HKEY_LOCAL_MACHINE, 'SOFTWARE\\ESRI\\Desktop10.1') 
    383386                try: 
    384387                    (realVersionValue, realVersionType) = win32api.RegQueryValueEx(hkey, 'RealVersion') 
  • MGET/Branches/Jason/PythonPackage/src/GeoEco/Logging.py

    r998 r1036  
    309309        if (loggingConfigFile is None or callersFileWarning is not None) and (userDefaultFile is None or userDefaultFileWarning is not None) and systemDefaultFileWarning is not None: 
    310310            try: 
    311                 stdout_handler = logging.StreamHandler(strm=sys.stdout) 
     311                stdout_handler = logging.StreamHandler(sys.stdout) 
    312312                stdout_handler.level = logging.INFO 
    313313                logging.getLogger(u'').addHandler(stdout_handler) 
Note: See TracChangeset for help on using the changeset viewer.