Skip to content

Commit

Permalink
rename default_args to current_args
Browse files Browse the repository at this point in the history
  • Loading branch information
rerpha authored Dec 19, 2024
1 parent 40fbfd5 commit 183df0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions installation_and_upgrade/IBEX_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import re
import sys

import ibex_install_utils.default_args
import ibex_install_utils.current_args
import semantic_version # pyright: ignore
from ibex_install_utils.exceptions import ErrorInTask, UserStop
from ibex_install_utils.file_utils import FileUtils
Expand Down Expand Up @@ -110,7 +110,7 @@ def _get_latest_existing_dir_path(release_dir: str, component: str) -> str:
parser.add_argument("--kits_icp_dir", default=None, help="Directory of kits/ICP")
parser.add_argument(
"--server_arch",
default=ibex_install_utils.default_args.SERVER_ARCH,
default=ibex_install_utils.current_args.SERVER_ARCH,
choices=["x64", "x86"],
help="Server build architecture.",
)
Expand All @@ -126,7 +126,7 @@ def _get_latest_existing_dir_path(release_dir: str, component: str) -> str:

args = parser.parse_args()

ibex_install_utils.default_args.SERVER_ARCH = args.server_arch
ibex_install_utils.current_args.SERVER_ARCH = args.server_arch

if not args.no_log_to_var:
Logger.set_up()
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SERVER_ARCH = "x64"
SERVER_ARCH = "x64"
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ def install_or_upgrade_vc_redist(self) -> None:
"""
Install the latest visual studio redistributable files
"""
import ibex_install_utils.default_args
import ibex_install_utils.current_args

arch = ibex_install_utils.default_args.SERVER_ARCH
arch = ibex_install_utils.current_args.SERVER_ARCH

print(f"Installing vc_redist for arch: {arch}")

Expand Down

0 comments on commit 183df0f

Please sign in to comment.