Skip to content

Commit

Permalink
fix if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-mi committed Aug 9, 2023
1 parent 67d28d4 commit 37bbeaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rocket/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def _deploy(self, watch, modified_files):
install_cmd = _add_index_urls_to_cmd(install_cmd, self.index_urls)
project_name = extract_project_name_from_wheel(self.wheel_file)

if watch:
if modified_files:
logger.info("Changes are applied")
elif watch:
logger.info(
f"""You have watch activated. Your project will be automatically synchronised with databricks. Add following in one cell:
%pip install --upgrade pip
Expand All @@ -145,8 +147,6 @@ def _deploy(self, watch, modified_files):
import sys
import os
sys.path.append(os.path.abspath('{base_path}')""")
elif modified_files:
logger.info("Changes are applied")
else:
logger.info(f"""Install your library in your databricks notebook by running:
%pip install --upgrade pip
Expand Down

0 comments on commit 37bbeaa

Please sign in to comment.