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
22dceccb
Commit
22dceccb
authored
Aug 10, 2015
by
MinchinWeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `colorama` to provide color on Windows CMD
Fixes #32
parent
d51462d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
setup.py
setup.py
+6
-1
topydo/cli/UILoader.py
topydo/cli/UILoader.py
+4
-0
No files found.
setup.py
View file @
22dceccb
...
...
@@ -20,6 +20,11 @@ def find_version(*file_paths):
raise
RuntimeError
(
"Unable to find version string."
)
conditional_dependencies
=
{
"colorama>=0.2.5"
:
"win32"
in
sys
.
platform
,
}
setup
(
name
=
"topydo"
,
packages
=
find_packages
(
exclude
=
[
"test"
]),
...
...
@@ -30,7 +35,7 @@ setup(
url
=
"https://github.com/bram85/topydo"
,
install_requires
=
[
'six >= 1.9.0'
,
],
]
+
[
p
for
p
,
cond
in
conditional_dependencies
.
items
()
if
cond
]
,
extras_require
=
{
'ical'
:
[
'icalendar'
],
'prompt-toolkit'
:
[
'prompt-toolkit >= 0.39'
],
...
...
topydo/cli/UILoader.py
View file @
22dceccb
...
...
@@ -20,6 +20,10 @@ import sys
import
getopt
from
topydo.cli.CLIApplicationBase
import
MAIN_OPTS
,
error
from
topydo.cli.CLI
import
CLIApplication
# enable color on windows CMD
if
"win32"
in
sys
.
platform
:
import
colorama
colorama
.
init
()
def
main
():
""" Main entry point of the CLI. """
...
...
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