diff --git a/kunlun.py b/kunlun.py index 96b19e1..13ca97d 100644 --- a/kunlun.py +++ b/kunlun.py @@ -370,11 +370,13 @@ def global_def(): if args.kunlun_version is None: args.kunlun_version=check_bin_type(iot_flash_file) ram_file=f'kl{args.kunlun_version}_ram_build.bin' - ram_file=os.path.join(bin_path(),ram_file) + ram_file=ram_file_redirect(ram_file) else: function_type='upload' ram_file=f'bootram_kl{args.kunlun_version}.bin' - ram_file=os.path.join(bin_path(),ram_file) + ram_file=ram_file_redirect(ram_file) + if(args.ram_file is not None): + ram_file=ram_file_redirect(args.ram_file) if(args.kunlun_version is None): print("请指定参数 -k") sys.exit(-1)