Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16523 -- Made path handling in autoreload code work on Jython.…

… Thanks, Aymeric Augustin.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d37e3baf62805b91e8cbd7b169f66b2c9d7962e5 1 parent cfba246
Jannis Leidel authored August 15, 2011

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  django/utils/autoreload.py
2  django/utils/autoreload.py
@@ -57,6 +57,8 @@ def code_changed():
57 57
     for filename in filter(lambda v: v, map(lambda m: getattr(m, "__file__", None), sys.modules.values())):
58 58
         if filename.endswith(".pyc") or filename.endswith(".pyo"):
59 59
             filename = filename[:-1]
  60
+        if filename.endswith("$py.class"):
  61
+            filename = filename[:-9] + ".py"
60 62
         if not os.path.exists(filename):
61 63
             continue # File might be in an egg, so it can't be reloaded.
62 64
         stat = os.stat(filename)

0 notes on commit d37e3ba

Please sign in to comment.
Something went wrong with that request. Please try again.