update for SchemaDisplay

Issue #1336 resolved
Former user created an issue

Hi,

I noticed that the version 2.22 of GraphViz uses a different registry path on Windows. Here's a little patch to sqlalchemy_schemadisplay3.py:

            for att_key in [Research Labs"]("ATT","AT&T):
              try:
                hkey = win32api.RegOpenKeyEx( 
                          win32con.HKEY_LOCAL_MACHINE,
                          "SOFTWARE\%s\Graphviz" % att_key, 
                          0, 
                          win32con.KEY_QUERY_VALUE )
                break
              except BaseException, e:
                hkey=None
                excep=e
            if not hkey:
              raise excep

Comments (1)

  1. Michael Trier

    It's a wiki. Just login as guest/guest and add your version. I would add it in, but this isn't a diff, so I'm not sure what you're suggesting. Thanks.

  2. Log in to comment