Skip to content

Commit

Permalink
[Telink] set correct order for set env
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 committed Sep 26, 2024
1 parent 241d80d commit 695143c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/tools/telink/process_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
import subprocess
import sys

ZEPHYR_BASE = os.environ.get('ZEPHYR_BASE')
if ZEPHYR_BASE is None:
raise EnvironmentError("ZEPHYR_BASE environment variable is not set")

try:
from core import BuildConfiguration
except ImportError:
sys.path.append(os.path.abspath(os.path.join(ZEPHYR_BASE, 'scripts/west_commands/runners')))
from core import BuildConfiguration

ZEPHYR_BASE = os.environ.get('ZEPHYR_BASE')
if ZEPHYR_BASE is None:
raise EnvironmentError("ZEPHYR_BASE environment variable is not set")

def merge_binaries(input_file1, input_file2, output_file, offset):
with open(output_file, 'r+b' if os.path.exists(output_file) else 'wb') as outfile:
# Merge input_file1 at offset 0
Expand Down

0 comments on commit 695143c

Please sign in to comment.