Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
4a7e8aed
Commit
4a7e8aed
authored
May 30, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36 from mruwek/fix-35
Import prompt-toolkit only if it's needed.
parents
51bf164f
d651635f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
topydo/cli/UILoader.py
topydo/cli/UILoader.py
+5
-2
No files found.
topydo/cli/UILoader.py
View file @
4a7e8aed
...
@@ -20,7 +20,6 @@ import sys
...
@@ -20,7 +20,6 @@ import sys
import
getopt
import
getopt
from
topydo.cli.CLIApplicationBase
import
MAIN_OPTS
,
error
from
topydo.cli.CLIApplicationBase
import
MAIN_OPTS
,
error
from
topydo.cli.CLI
import
CLIApplication
from
topydo.cli.CLI
import
CLIApplication
from
topydo.cli.Prompt
import
PromptApplication
def
main
():
def
main
():
""" Main entry point of the CLI. """
""" Main entry point of the CLI. """
...
@@ -34,7 +33,11 @@ def main():
...
@@ -34,7 +33,11 @@ def main():
sys
.
exit
(
1
)
sys
.
exit
(
1
)
if
args
[
0
]
==
'prompt'
:
if
args
[
0
]
==
'prompt'
:
try
:
from
topydo.cli.Prompt
import
PromptApplication
PromptApplication
().
run
()
PromptApplication
().
run
()
except
ImportError
:
error
(
"You have to install prompt-toolkit to run prompt mode."
)
else
:
else
:
CLIApplication
().
run
()
CLIApplication
().
run
()
except
IndexError
:
except
IndexError
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment