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
cb77d7df
Commit
cb77d7df
authored
Jun 11, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefile.py: remove useless code.
parent
04a621c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
makefile.py
hdlmake/tools/makefile.py
+3
-12
No files found.
hdlmake/tools/makefile.py
View file @
cb77d7df
...
...
@@ -85,7 +85,7 @@ class ToolMakefile(object):
bin_name
=
self
.
_get_name_bin
()
locations
=
shell
.
which
(
bin_name
)
if
len
(
locations
)
==
0
:
return
return
None
logging
.
debug
(
"location for
%
s:
%
s"
,
bin_name
,
locations
[
0
])
return
os
.
path
.
dirname
(
locations
[
0
])
...
...
@@ -93,20 +93,11 @@ class ToolMakefile(object):
"""Check if the directory is in the system path"""
path
=
self
.
manifest_dict
.
get
(
path_key
)
bin_name
=
self
.
_get_name_bin
()
if
path
is
not
None
:
return
os
.
path
.
exists
(
os
.
path
.
join
(
path
,
bin_name
))
else
:
assert
isinstance
(
bin_name
,
six
.
string_types
)
path
=
self
.
_get_path
()
return
len
(
path
)
>
0
return
os
.
path
.
exists
(
os
.
path
.
join
(
path
,
bin_name
))
def
_check_in_system_path
(
self
):
"""Check if if in the system path exists a file named (name)"""
path
=
self
.
_get_path
()
if
path
:
return
True
else
:
return
False
return
self
.
_get_path
()
is
not
None
def
makefile_check_tool
(
self
,
path_key
):
"""Check if the binary is available in the O.S. environment"""
...
...
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