Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
e4ab5a86
Commit
e4ab5a86
authored
Jul 31, 2018
by
Reed
Committed by
Taylor Robie
Jul 31, 2018
Browse files
Fix crash when Python interpreter not on PATH. (#4961)
* Fix crash when Python interpreter not on PATH. * Fix lint error.
parent
c242705b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
official/recommendation/popen_helper.py
official/recommendation/popen_helper.py
+5
-2
No files found.
official/recommendation/popen_helper.py
View file @
e4ab5a86
...
...
@@ -15,10 +15,13 @@
"""Helper file for running the async data generation process in OSS."""
import
os
import
s
ix
import
s
ys
_PYTHON
=
"python3"
if
six
.
PY3
else
"python2"
_PYTHON
=
sys
.
executable
if
not
_PYTHON
:
raise
RuntimeError
(
"Could not find path to Python interpreter in order to "
"spawn subprocesses."
)
_ASYNC_GEN_PATH
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"data_async_generation.py"
)
...
...
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