summaryrefslogtreecommitdiff
path: root/examples/environment.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-02-20 22:56:25 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-02-20 22:56:25 -0500
commit6cb882e3420fef1497955c9b4c7f0d8674e1557d (patch)
tree0256863a9846acd5001ab6a97b1756a54ccd3df7 /examples/environment.py
parent6e4d4801827559b3dc150b1dd29de482cfba2626 (diff)
downloadcmd2-git-6cb882e3420fef1497955c9b4c7f0d8674e1557d.tar.gz
Changed examples to reflect that settable doesn't need to be updated before calling init()
Diffstat (limited to 'examples/environment.py')
-rwxr-xr-xexamples/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/environment.py b/examples/environment.py
index c45ce71c..e899cce8 100755
--- a/examples/environment.py
+++ b/examples/environment.py
@@ -14,9 +14,9 @@ class EnvironmentApp(cmd2.Cmd):
sunny = False
def __init__(self):
+ super().__init__()
self.settable.update({'degrees_c': 'Temperature in Celsius'})
self.settable.update({'sunny': 'Is it sunny outside?'})
- super().__init__()
def do_sunbathe(self, arg):
if self.degrees_c < 20: