#32669: Fix for #32314 causing problems with non-package dotted name specified
to
-m
-------------------------------------+-------------------------------------
Reporter: Moriyoshi Koizumi | Owner: nobody
Type: Uncategorized | Status: new
Component: Utilities | Version: 3.2
Severity: Normal | Resolution:
Keywords: autoreload | Triage Stage:
runserver | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Moriyoshi Koizumi:
Old description:
> The original fix [1] only attempted to deal with "-m foo.bar" where bar
> is a package and __main__.py exists under foo/bar.
>
> When a dotted name for a module (for example, foo.bar.baz where baz.py
> resides under foo/bar) is specified like "-m foo.bar.baz", the resulting
> arguments end up being "-m foo.bar", which is uncalled for.
>
> [1]
> https://github.com/django/django/commit/ec6d2531c59466924b645f314ac33f54470d7ac3
New description:
The original fix [1] only attempted to deal with `-m foo.bar` where `bar`
is a package and `__main__.py` exists under `foo/bar`.
When a dotted name for a module (for example, `foo.bar.baz` where `baz.py`
resides under `foo/bar`) is specified like `-m foo.bar.baz`, the resulting
arguments end up being `-m foo.bar`, which is uncalled for.
[1]
https://github.com/django/django/commit/ec6d2531c59466924b645f314ac33f54470d7ac3
--
--
Ticket URL: <https://code.djangoproject.com/ticket/32669#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.adb3f6b93d6ca771fb0c9621c29dacec%40djangoproject.com.