24 lines
618 B
Python
24 lines
618 B
Python
# 传入参数 0:SDK_PATH 1:ChannelPath
|
|
import sys
|
|
import os
|
|
def main():
|
|
if len(sys.argv) < 3:
|
|
print("Usage: python PreHandle.py <SDK_PATH> <ChannelPath>")
|
|
return
|
|
|
|
sdk_path = sys.argv[1]
|
|
channel_path = sys.argv[2]
|
|
|
|
if not os.path.exists(sdk_path):
|
|
print(f"Error: SDK path '{sdk_path}' does not exist.")
|
|
return
|
|
|
|
if not os.path.exists(channel_path):
|
|
print(f"Error: Channel path '{channel_path}' does not exist.")
|
|
return
|
|
|
|
# 这里可以添加更多的处理逻辑
|
|
print(f"SDK Path: {sdk_path}")
|
|
print(f"Channel Path: {channel_path}")
|
|
|
|
main() |