Skip to content

Commit

Permalink
fix bugs with paths
Browse files Browse the repository at this point in the history
  • Loading branch information
stanfeldman committed Aug 9, 2012
1 parent fc4909f commit c73bf2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyplug/__init__.py
@@ -1,7 +1,7 @@
from putils.dynamics import Importer
from putils.filesystem import Dir
from types import FunctionType
import os
import os, sys
import mimetypes


Expand Down Expand Up @@ -78,6 +78,6 @@ def load(plugin_path):
except:
pass
def cb(p):
if mimetypes.guess_type(p)[0] in ["text/x-python", "application/x-python-code"]:
if mimetypes.guess_type(p)[0] == "text/x-python":
Importer.import_module_by_path(p)
Dir.walk(plugin_path, cb)
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -6,7 +6,7 @@

setup(
name = "pyplug",
version = "0.1.4",
version = "0.1.5",
author = "Stanislav Feldman",
description = ("Python plugin framework"),
url = "https://github.com/stanislavfeldman/pyplug",
Expand Down

0 comments on commit c73bf2e

Please sign in to comment.