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
e425bcc5
Commit
e425bcc5
authored
Jul 31, 2013
by
Pawel Szostek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add _check_env to action/ise_project
parent
78ea94ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ise_project.py
src/action/ise_project.py
+5
-2
No files found.
src/action/ise_project.py
View file @
e425bcc5
...
...
@@ -11,6 +11,7 @@ from srcfile import SourceFileFactory
import
global_mod
from
util
import
path
class
GenerateISEProject
(
Action
):
def
_check_manifest
(
self
):
self
.
_check_manifest_variable_is_set
(
"top_module"
)
...
...
@@ -19,8 +20,7 @@ class GenerateISEProject(Action):
self
.
_check_manifest_variable_is_set
(
"syn_grade"
)
self
.
_check_manifest_variable_is_set
(
"syn_package"
)
def
run
(
self
):
def
_check_env
(
self
):
env
=
self
.
env
if
self
.
env
[
"ise_path"
]
is
None
:
logging
.
error
(
"Can't generate an ISE project. ISE not found."
)
...
...
@@ -33,6 +33,9 @@ class GenerateISEProject(Action):
sys
.
exit
(
"Exiting"
)
else
:
logging
.
info
(
"Generating project for ISE v.
%
s.
%
s"
%
(
env
[
"ise_version"
][
0
],
env
[
"ise_version"
][
1
]))
def
run
(
self
):
self
.
_check_all_fetched_or_quit
()
if
os
.
path
.
exists
(
self
.
top_module
.
syn_project
)
or
os
.
path
.
exists
(
self
.
top_module
.
syn_project
+
".xise"
):
...
...
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