Variable: python--run-module

python--run-module is a variable defined in python.el.gz.

Value

"import runpy, sys\n\nsys.path = [p for p in sys.path if p]\n\nrunpy.run_module(sys.argv.pop(1), run_name='__main__', alter_sys=True)\n"

Documentation

Script to run a Python module.

It removes the leading empty string from sys.path before executing the module.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defconst python--run-module "\
import runpy, sys

sys.path = [p for p in sys.path if p]

runpy.run_module(sys.argv.pop(1), run_name='__main__', alter_sys=True)
"
  "Script to run a Python module.
It removes the leading empty string from `sys.path' before executing the
module.")