Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
d99a04a6
Commit
d99a04a6
authored
Oct 30, 2014
by
Neil Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect old Closure directory and prompt to rename.
parent
448be04e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
build.py
build.py
+7
-1
No files found.
build.py
View file @
d99a04a6
...
...
@@ -406,7 +406,13 @@ if __name__ == '__main__':
calcdeps
=
import_path
(
os
.
path
.
join
(
os
.
path
.
pardir
,
'closure-library'
,
'closure'
,
'bin'
,
'calcdeps.py'
))
except
ImportError
:
print
(
"""Error: Closure not found. Read this:
if
os
.
path
.
isdir
(
os
.
path
.
join
(
os
.
path
.
pardir
,
'closure-library-read-only'
)):
# Dir got renamed when Closure moved from Google Code to GitHub in 2014.
print
(
"Error: Closure directory needs to be renamed from"
"'closure-library-read-only' to 'closure-library'.
\n
"
"Please rename this directory."
)
else
:
print
(
"""Error: Closure not found. Read this:
https://developers.google.com/blockly/hacking/closure"""
)
sys
.
exit
(
1
)
search_paths
=
calcdeps
.
ExpandDirectories
(
...
...
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