-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_setup.py
More file actions
63 lines (53 loc) · 1.49 KB
/
Copy pathtest_setup.py
File metadata and controls
63 lines (53 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python3
"""Quick setup and verification script for Listing Manager"""
import os
from pathlib import Path
print("="*60)
print(" 📦 Listing Manager - Setup Verification")
print("="*60 + "\n")
# Check directory structure
required_dirs = [
"listing-manager/config",
"listing-manager/core",
"listing-manager/platforms",
"listing-manager/dashboard",
"listing-manager/scanner",
"listing-manager/data",
"listing-manager/logs",
"listing-manager/inventory/input",
"listing-manager/inventory/processed",
"listing-manager/inventory/failed",
]
print("1. Checking directory structure...")
all_good = True
for d in required_dirs:
if Path(d).exists():
print(f" {d} - OK")
else:
print(f" MISSING: {d}")
all_good = False
if all_good:
print("\n✅ All directories created successfully!\n")
else:
print("\n⚠️ Some directories missing. Run setup again.\n")
# Check config file
print("2. Checking configuration...")
config_path = Path("listing-manager/config/settings.yaml")
if config_path.exists():
print(f" settings.yaml - OK")
else:
print(f" MISSING: settings.yaml")
# Summary
print("\n" + "="*60)
print(" Next Steps:")
print("="*60)
print("""
1. Install dependencies:
cd listing-manager
pip install -r requirements.txt
2. Start LM Server (open LM Studio UI first):
python main.py dashboard
3. Open browser to http://localhost:8000
4. Drop product photos in inventory/input/ folder
""")
print("="*60 + "\n")