Skip to content

Commit

Permalink
[py] copy LICENSE file to directory during //py:prep
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Aug 4, 2018
1 parent 42b5e4b commit b594931
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ py/selenium/webdriver/remote/getAttribute.js
py/selenium/webdriver/remote/isDisplayed.js
py/docs/build/
py/build/
py/LICENSE
selenium.egg-info/
third_party/java/jetty/jetty-repacked.jar
*.user
Expand Down
7 changes: 5 additions & 2 deletions rake-tasks/crazy_fun/mappings/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,15 @@ def handle(fun, dir, args)
class Prep < Tasks
def handle(fun, dir, args)
task Tasks.new.task_name(dir, args[:name]) do
remote_py_home = "py/selenium/webdriver/remote/"
firefox_py_home = "py/selenium/webdriver/firefox/"
py_home = "py/"
remote_py_home = py_home + "selenium/webdriver/remote/"
firefox_py_home = py_home + "selenium/webdriver/firefox/"
firefox_build_dir = 'build/javascript/firefox-driver/'
x86 = firefox_py_home + "x86/"
amd64 = firefox_py_home + "amd64/"

if (windows?) then
py_home = amd64.gsub(/\//,"\\")
remote_py_home = remote_py_home.gsub(/\//, "\\")
firefox_build_dir = firefox_build_dir.gsub(/\//, "\\")
firefox_py_home = firefox_py_home .gsub(/\//, "\\")
Expand All @@ -149,6 +151,7 @@ def handle(fun, dir, args)

cp Rake::Task['//javascript/firefox-driver:webdriver'].out, firefox_py_home, :verbose => true
cp Rake::Task['//javascript/firefox-driver:webdriver_prefs'].out, firefox_py_home+"webdriver_prefs.json", :verbose => true
cp "LICENSE", py_home + "LICENSE", :verbose => true
end
end
end
Expand Down

0 comments on commit b594931

Please sign in to comment.