Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
99056e3f
Commit
99056e3f
authored
May 18, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable coloured output in Windows
parent
efcae3b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
__main__.py
hdlmake/__main__.py
+15
-7
No files found.
hdlmake/__main__.py
View file @
99056e3f
...
...
@@ -29,6 +29,7 @@ import argparse
import
logging
import
sys
from
.util
import
path
as
path_mod
from
.util.termcolor
import
colored
from
.manifest_parser
import
ManifestParser
from
.module_pool
import
ModulePool
...
...
@@ -60,13 +61,20 @@ def main():
if
not
isinstance
(
numeric_level
,
int
):
sys
.
exit
(
'Invalid log level:
%
s'
%
options
.
log
)
logging
.
basicConfig
(
format
=
colored
(
"
%(levelname)
s"
,
"yellow"
)
+
colored
(
"
\t
%(filename)
s:
%(lineno)
d:
%(funcName)
s()
\t
"
,
"blue"
)
+
"
%(message)
s"
,
level
=
numeric_level
)
if
not
path_mod
.
check_windows
():
logging
.
basicConfig
(
format
=
colored
(
"
%(levelname)
s"
,
"yellow"
)
+
colored
(
"
\t
%(filename)
s:
%(lineno)
d:
%(funcName)
s()
\t
"
,
"blue"
)
+
"
%(message)
s"
,
level
=
numeric_level
)
else
:
logging
.
basicConfig
(
format
=
"
%(levelname)
s"
+
"
\t
%(filename)
s:
%(lineno)
d:
%(funcName)
s()
\t
"
+
"
%(message)
s"
,
level
=
numeric_level
)
logging
.
debug
(
str
(
options
))
# Create a ModulePool object, this will become our workspace
...
...
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