Editing Configuration Files For Python
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 244: | Line 244: | ||
* Python cares about capitalization, use the capitalization indicated in the default files and the example code. | * Python cares about capitalization, use the capitalization indicated in the default files and the example code. | ||
* Python also cares a lot about how lines are indented. Do not change the indentation from the sample files, and always indent using spaces ( not tabs. most text editors will use spaces automatically for .py files, even if you use the tab key ) | * Python also cares a lot about how lines are indented. Do not change the indentation from the sample files, and always indent using spaces ( not tabs. most text editors will use spaces automatically for .py files, even if you use the tab key ) | ||
+ | |||
+ | == Modes == | ||
+ | |||
+ | Modes are a set of parameters you may want to use for a specialization of the application, this may be to adapt the application to a particular environment or user. Because of this the first method in parameters.py is normally choose_mode. It has calls to the modes in your parameter file ( except the default mode that is called prior to choose mode ). Normally all but the mode you want are commented out. There is also a mode at the end, plus_test_mode that is used to temporarily modify another mode. So once you have you system set up you will most often just switch modes using choose_mode. | ||
= Other Links = | = Other Links = |