Skip to content

Commit

Permalink
python empty issue
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jun 23, 2019
1 parent d088cef commit aa952ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ prevpythfound = false
package_basepath = joinpath(@__DIR__, "../../")
for d in readdir(package_basepath)
test_pythonpath = joinpath(package_basepath, d, "deps/python2/")
if ispath(test_pythonpath) && !ispath(pythonpath)
if ispath(test_pythonpath) && !ispath(pythonpath) && !isempty(readdir(test_pythonpath))
@info "Previous python2 found at $test_pythonpath."
cp(test_pythonpath, pythonpath)
cp(test_pythonpath, pythonpath, force=true, follow_symlinks=true)
prevpythonfound = true
break
end
Expand Down

0 comments on commit aa952ca

Please sign in to comment.