Permalink
Browse files

windows-compatible module discovery, fixes #142

  • Loading branch information...
1 parent bb7afc3 commit 657b1f6b6e299bce278e98e9b3555645e277db9b @posativ committed Mar 14, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 acrylamid/__init__.py
  2. +2 −2 acrylamid/helpers.py
  3. +1 −1 docs/conf.py
View
@@ -16,7 +16,7 @@
# those of the authors and should not be interpreted as representing official
# policies, either expressed or implied, of Martin Zimmermann <info@posativ.org>.
-__version__ = '0.6.6'
+__version__ = '0.6.7'
__author__ = 'Martin Zimmermann <info@posativ.org>'
__url__ = 'https://github.com/posativ/acrylamid/'
View
@@ -419,13 +419,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]
View
@@ -23,7 +23,7 @@
copyright = u'2013, posativ'
version = '0.6'
-release = '0.6.6'
+release = '0.6.7'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

0 comments on commit 657b1f6

Please sign in to comment.