Skip to content

Commit 69217df

Browse files
theflexaclaude
andcommitted
Fix winreg import on Linux — conditional import for Windows only
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6150fd3 commit 69217df

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/pywebflx/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
from __future__ import annotations
1313

1414
import asyncio
15-
import json
1615
import subprocess
1716
import sys
18-
import winreg
1917
from pathlib import Path
2018

19+
if sys.platform == "win32":
20+
import winreg
21+
2122
import click
2223

2324
from pywebflx import __version__

0 commit comments

Comments
 (0)