File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,10 @@ Running a command-line interface from source with src-layout
88
88
Due to the firstly mentioned specialty of the src layout, a command-line
89
89
interface can not be run directly from the :term: `source tree <Project Source Tree> `.
90
90
91
- To run a command-line interface directly, you can either:
91
+ To run a command-line interface directly, you can install the package in
92
+ :doc: `Development Mode <setuptools:userguide/development_mode >` for testing purposes.
93
+
94
+ Since this can be unpractical in some situations, you can also either:
92
95
93
96
Run :file: `__main__.py ` via:
94
97
@@ -97,10 +100,8 @@ Run :file:`__main__.py` via:
97
100
cd src/
98
101
python -m awesome_package
99
102
100
- Or install the package in :doc: `Development Mode <setuptools:userguide/development_mode >`
101
- for testing purposes. Since this can be unpractical in some situations,
102
- a workaround could be to prepend the package folder to Python's
103
- :py:data: `sys.path ` when called via its :file: `__main__.py ` file:
103
+ Or prepend the package folder to Python's :py:data: `sys.path ` when called via its
104
+ :file: `__main__.py ` file:
104
105
105
106
.. code-block :: python
106
107
You can’t perform that action at this time.
0 commit comments