[issue31112] cannot run module with double quotes

2017-08-02 Thread Eryk Sun

Eryk Sun added the comment:

Python uses the C runtime wmain entry point, which parses the commandline 
string into an argument array using documented rules [1]. The quoted string "-m 
locust.main -V" is passed as a single argument instead of the expected three 
arguments: ["-m", "locust.main", "-V"].

[1]: https://msdn.microsoft.com/en-us/library/17w5ykft

--
nosy: +eryksun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31112] cannot run module with double quotes

2017-08-02 Thread ericshenjs

New submission from ericshenjs:

(vPy3X64) test01@NJNU f:\Src\localCode\python\py3_eric
> python "-m locust.main -V"
f:\SDKs\Python\vPy3X64\Scripts\python.exe: Error while finding module 
specification for ' locust.main -V' (ModuleNotFoundError: No module named ' 
locust')

(vPy3X64) test01@NJNU f:\Src\localCode\python\py3_eric
> python -m locust.main -V
[2017-08-03 10:53:19,111] NJNU/INFO/stdout: Locust 0.8a2
[2017-08-03 10:53:19,111] NJNU/INFO/stdout:

(vPy3X64) test01@NJNU f:\Src\localCode\python\py3_eric
> python -V
Python 3.6.1 :: Anaconda 4.4.0 (64-bit)

--
components: Windows
messages: 299681
nosy: ericshenjs, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: cannot run module with double quotes
type: resource usage
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com