Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

windows-compatible module discovery, fixes #142

  • Loading branch information...
commit 8728cebad58486513f42c5b60107602a60b4ce81 1 parent 42ee279
@posativ authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 acrylamid/helpers.py
View
4 acrylamid/helpers.py
@@ -408,13 +408,13 @@ def find(directories, filterfunc):
yield join(root, fname)
for filename in find(directories, filterfunc):
- modname, ext = os.path.splitext(os.path.basename(rchop(filename, '/__init__.py')))
+ modname, ext = os.path.splitext(os.path.basename(rchop(filename, os.sep + '__init__.py')))
fp, path, descr = imp.find_module(modname, directories)
prefix = commonprefix((PATH, filename))
if prefix:
modname = 'acrylamid.'
- modname += rchop(filename[len(prefix):].replace('/', '.'), '.py')
+ modname += rchop(filename[len(prefix):].replace(os.sep, '.'), '.py')
try:
mod = sys.modules[modname]
Please sign in to comment.
Something went wrong with that request. Please try again.