Tag

module execution

0 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Jan 21, 2022 · Fundamentals

Difference Between python3 script.py and python3 -m module: Impact on sys.path

This article explains how running a Python file directly with python3 script.py differs from using python3 -m module, focusing on the resulting changes to sys.path, import behavior, and the search order of modules.

@ImportCommand LinePython
0 likes · 4 min read
Difference Between python3 script.py and python3 -m module: Impact on sys.path