Skip to content

Commit c02f91e

Browse files
committed
windows fixes 2
1 parent d204f48 commit c02f91e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mxdev/processing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ def resolve_dependencies(
107107
logger.info(f"Read [{variety}]: {file_or_url}")
108108
parsed = parse.urlparse(file_or_url)
109109
variety_verbose = "requirements" if variety == "r" else "constraints"
110+
# Check if it's a real URL scheme (not a Windows drive letter)
111+
# Windows drive letters are single characters, URL schemes are longer
112+
is_url = parsed.scheme and len(parsed.scheme) > 1
110113

111-
if not parsed.scheme:
114+
if not is_url:
112115
requirements_in_file = Path(file_or_url)
113116
if requirements_in_file.exists():
114117
with requirements_in_file.open("r") as fio:

0 commit comments

Comments
 (0)