Skip to content

Commit

Permalink
Merge pull request #18 from pfultz2/master
Browse files Browse the repository at this point in the history
Properly import winreg on python 3
  • Loading branch information
gbiggs authored Mar 6, 2017
2 parents 1bf26fa + bef7ecd commit 2126eb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pykg_config/pkgsearcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
from os.path import isdir, isfile, join, split, splitext
import sys
if sys.platform == 'win32':
import _winreg
if sys.version_info[0] < 3:
import _winreg
else:
import winreg as _winreg


from pykg_config.exceptions import PykgConfigError
from pykg_config.options import Options
Expand Down

0 comments on commit 2126eb0

Please sign in to comment.