File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
import datetime
2
2
import logging
3
+ import os
3
4
4
5
import termcolor
5
6
7
+ if os .name == "nt" : # Windows
8
+ import colorama
9
+
10
+ colorama .init ()
11
+
6
12
from . import __appname__
7
13
8
14
Original file line number Diff line number Diff line change 1
1
from __future__ import print_function
2
2
3
3
import distutils .spawn
4
+ import os
4
5
import re
5
- from setuptools import find_packages
6
- from setuptools import setup
7
6
import shlex
8
7
import subprocess
9
8
import sys
10
9
10
+ from setuptools import find_packages
11
+ from setuptools import setup
12
+
11
13
12
14
def get_version ():
13
15
filename = "labelme/__init__.py"
@@ -75,6 +77,9 @@ def get_install_requires():
75
77
QT_BINDING = "pyqt5"
76
78
del QT_BINDING
77
79
80
+ if os .name == "nt" : # Windows
81
+ install_requires .append ("colorama" )
82
+
78
83
return install_requires
79
84
80
85
You can’t perform that action at this time.
0 commit comments