48 lines
1.3 KiB
Python
48 lines
1.3 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Aurora Admin Design System - DSH Launcher
|
|
This script launches the DeepSeek Harness for the Aurora Admin design system project.
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
import subprocess
|
|
import platform
|
|
|
|
def main():
|
|
# Configuration
|
|
dsh_path = r"C:\Users\12914\AppData\Roaming\TRAE SOLO CN\ModularData\ai-agent\vm\tools\node"
|
|
workspace = r"C:\Users\12914\Desktop\组件规范第一套"
|
|
|
|
# Display info
|
|
print("=" * 60)
|
|
print("Aurora Admin Design System - DSH Launcher")
|
|
print("=" * 60)
|
|
print(f"Workspace: {workspace}")
|
|
print(f"DSH Path: {dsh_path}")
|
|
print("Profile: Web")
|
|
print("=" * 60)
|
|
|
|
# Change to workspace directory
|
|
os.chdir(workspace)
|
|
|
|
# Set environment variables
|
|
os.environ['DSH_HOME'] = os.path.join(os.environ.get('APPDATA', ''), 'dsh')
|
|
os.environ['DSH_WORKSPACE'] = workspace
|
|
|
|
# Determine the DSH executable
|
|
if platform.system() == 'Windows':
|
|
dsh_exe = os.path.join(dsh_path, "dsh.cmd")
|
|
else:
|
|
dsh_exe = os.path.join(dsh_path, "dsh")
|
|
|
|
# Start DSH with web profile
|
|
try:
|
|
subprocess.call([dsh_exe, "--profile", "web"])
|
|
except FileNotFoundError:
|
|
print(f"Error: DSH executable not found at {dsh_exe}")
|
|
input("Press Enter to exit...")
|
|
sys.exit(1)
|
|
|
|
if __name__ == "__main__":
|
|
main() |