Skip to content

Commit

Permalink
Update setup.py (mukulhase#882)
Browse files Browse the repository at this point in the history
* Update setup.py

* Update wapi_js_wrapper.py

* Update wapi_js_wrapper.py
  • Loading branch information
yogasw authored Aug 10, 2020
1 parent e468b1c commit 30d2500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
break

# Get the long description from the README file
with open(os.path.join(os.path.dirname(__file__), "README.rst"), encoding="utf-8") as f:
with open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8") as f:
long_description = f.read()

setup(
Expand Down
4 changes: 2 additions & 2 deletions webwhatsapi/wapi_js_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def __dir__(self):
with open(os.path.join(script_path, "js", "wapi.js"), "r") as script:
self.driver.execute_script(script.read())

result = self.driver.execute_script("return window.WAPI")
result = self.driver.execute_script("return Object.keys(window.WAPI)")
if result:
self.available_functions = result.keys()
self.available_functions = result
return self.available_functions
else:
return []
Expand Down

0 comments on commit 30d2500

Please sign in to comment.