summaryrefslogtreecommitdiff
path: root/examples/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/environment.py')
-rwxr-xr-xexamples/environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/environment.py b/examples/environment.py
index e899cce8..9e611f08 100755
--- a/examples/environment.py
+++ b/examples/environment.py
@@ -3,7 +3,6 @@
"""
A sample application for cmd2 demonstrating customized environment parameters
"""
-
import cmd2
@@ -34,5 +33,6 @@ class EnvironmentApp(cmd2.Cmd):
if __name__ == '__main__':
+ import sys
c = EnvironmentApp()
- c.cmdloop()
+ sys.exit(c.cmdloop())