diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2014-11-14 02:12:11 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-11-14 02:12:11 +0200 |
commit | 752553dd5c7d62fdc218d3bb75cd10ab2ede2e19 (patch) | |
tree | 576938e743d824e1c2dfc1f63b2d641099168cc9 /astroid/manager.py | |
parent | 106d0629731aba78d100a0e3e3658583a5c6eae1 (diff) | |
download | astroid-752553dd5c7d62fdc218d3bb75cd10ab2ede2e19.tar.gz |
Fix zip_import_data for Windows.
Diffstat (limited to 'astroid/manager.py')
-rw-r--r-- | astroid/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/manager.py b/astroid/manager.py index c99c534..65cf393 100644 --- a/astroid/manager.py +++ b/astroid/manager.py @@ -153,12 +153,12 @@ class AstroidManager(OptionsProviderMixIn): builder = AstroidBuilder(self) for ext in ('.zip', '.egg'): try: - eggpath, resource = filepath.rsplit(ext + '/', 1) + eggpath, resource = filepath.rsplit(ext + os.path.sep, 1) except ValueError: continue try: importer = zipimport.zipimporter(eggpath + ext) - zmodname = resource.replace('/', '.') + zmodname = resource.replace(os.path.sep, '.') if importer.is_package(resource): zmodname = zmodname + '.__init__' module = builder.string_build(importer.get_source(resource), |