Skip to content

Commit

Permalink
Make WBT download optional
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jul 16, 2024
1 parent 2347cfa commit e502c7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions whitebox/download_wbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def download_wbt(linux_musl=False, reset=False, verbose=True):
import pkg_resources
import webbrowser

if os.environ.get("WBT_PATH", None) is not None:
return

# print("Your operating system: {}".format(platform.system()))
package_name = "whitebox"
# Get package directory
Expand Down
3 changes: 3 additions & 0 deletions whitebox/whitebox_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def download_wbt(linux_musl=False, reset=False, verbose=True):
import pkg_resources
import webbrowser

if os.environ.get("WBT_PATH", None) is not None:
return

# print("Your operating system: {}".format(platform.system()))
package_name = "whitebox"
# Get package directory
Expand Down

0 comments on commit e502c7e

Please sign in to comment.