Skip to content

Commit 28630b3

Browse files
some formatting improvements to where to put your code.
1 parent ee28d49 commit 28630b3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Sources/source/where_to_put_your_code.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,23 @@ Many scientists and engineers that do a little coding find they have a collectio
3232
Options for Handling Your Code Collection:
3333
------------------------------------------
3434

35-
1) Keep your code in one place, and copy and paste the functions you need into each new project.
35+
**(1)** Keep your code in one place and copy and paste the functions you need into each new project.
3636

37+
.. centered:: **DON'T DO THAT!**
3738

38-
**DON'T DO THAT!**
39+
.. centered:: **REALLY!**
3940

40-
**REALLY!**
4141

42+
It is really NOT a good idea to simply copy and paste code around for use with each project. You will end up with multiple versions scattered all over the place ...
4243

43-
It is really NOT a good idea to simply copy and paste code around for use with each project. You will end up with multiple versions scattered all over the place -- **you will regret that!**
44+
.. centered:: **You will regret that!**
4445

45-
2) Put your code in a single directory and add it to the ``PYTHONPATH`` environment variable
4646

47+
**(2)** Put your code in a single directory and add it to the ``PYTHONPATH`` environment variable
4748

48-
**DON'T DO THAT!**
49+
.. centered:: **DON'T DO THAT!**
4950

50-
**REALLY!**
51+
.. centered:: **REALLY!**
5152

5253

5354
``PYTHONPATH`` is shared by all installs of Python. What with Python2, Python3, virtual environments, etc -- it's really not a good idea.

0 commit comments

Comments
 (0)