ean vs barcode
This commit is contained in:
1 parent
7fbf415acf
commit
daf6f215fe
3 files changed
+25
-3
No files matched your search
+13
-1
@@ -57,11 +57,23 @@ def on_starting(server):
|
||||
from pathlib import Path
|
||||
|
||||
env_path = Path(__file__).parent.parent / ".env"
|
||||
print(f"[@DEBUG] Looking for .env at: {env_path.absolute()}")
|
||||
if env_path.exists():
|
||||
dotenv.load_dotenv(env_path)
|
||||
print(f"✓ Loaded environment from {env_path}")
|
||||
|
||||
# Verify key was loaded
|
||||
import os
|
||||
|
||||
key = os.getenv("PROD_SQUARE_WEBHOOK_SIGNATURE_KEY") or os.getenv(
|
||||
"SANDBOX_SQUARE_WEBHOOK_SIGNATURE_KEY"
|
||||
)
|
||||
if key:
|
||||
print(f"✓ SQUARE_WEBHOOK_SIGNATURE_KEY loaded: {key[:10]}...")
|
||||
else:
|
||||
print(f"⚠ SQUARE_WEBHOOK_SIGNATURE_KEY not found in .env")
|
||||
else:
|
||||
print(f"⚠ No .env file found at {env_path}")
|
||||
print(f"⚠ No .env file found at {env_path.absolute()}")
|
||||
|
||||
|
||||
def on_reload(server):
|
||||
|
||||
Reference in new issue
Block a user