Skip to content

Commit

Permalink
[dataproc] fix pyfiles (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladsavelyev authored Dec 1, 2022
1 parent 61993f3 commit f6126c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hail/python/hailtop/hailctl/dataproc/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ def _filter_pyfile(fname: str) -> bool:
else:
for root, _, pyfiles_walk in os.walk(hail_script_entry):
for pyfile in pyfiles_walk:
if os.path.isfile(pyfile) and _filter_pyfile(pyfile):
zipf.write(os.path.join(root, pyfile),
os.path.relpath(os.path.join(root, pyfile),
path = os.path.join(root, pyfile)
if os.path.isfile(path) and _filter_pyfile(path):
zipf.write(path,
os.path.relpath(path,
os.path.join(hail_script_entry, '..')))
zipf.close()
pyfiles = tfile
Expand Down

0 comments on commit f6126c4

Please sign in to comment.