Opened 4 years ago

Last modified 4 years ago

#32669 closed New feature

Fix for #32314 causing problems with non-package dotted name specified to -m — at Initial Version

Reported by: Moriyoshi Koizumi Owned by: nobody
Component: Utilities Version: 4.0
Severity: Normal Keywords: autoreload runserver
Cc: William Schwartz Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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

Change History (1)

by Moriyoshi Koizumi, 4 years ago

Patch

Note: See TracTickets for help on using tickets.
Back to Top