Skip to content

Commit b7172ca

Browse files
committed
Moved import.
1 parent 1486c09 commit b7172ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/getting_started.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
10) How to make custom attributes settable at runtime.
1515
11) Shortcuts for commands
1616
12) Persistent bottom toolbar with realtime status updates
17+
13) Right prompt which displays contextual information
1718
"""
1819

1920
import datetime
2021
import pathlib
22+
import sys
2123

2224
from prompt_toolkit.application import get_app
2325
from prompt_toolkit.formatted_text import AnyFormattedText
@@ -133,7 +135,5 @@ def do_echo(self, arg: cmd2.Statement) -> None:
133135

134136

135137
if __name__ == "__main__":
136-
import sys
137-
138138
app = BasicApp()
139139
sys.exit(app.cmdloop())

0 commit comments

Comments
 (0)