Skip to content

Commit 4f4f025

Browse files
committed
Windows uses ; instead of : for path separator
1 parent a3b3b59 commit 4f4f025

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ To be released.
2121
``source_comments='map'``.
2222

2323
- Fixed Python 3 incompatibility of :program:`sassc` program.
24+
- Fixed a bug that multiple ``include_paths`` doesn't work on Windows.
2425

2526

2627
Version 0.3.0

sass.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
"""
1313
import collections
14+
import os
1415
import os.path
1516
import sys
1617

@@ -201,11 +202,11 @@ def compile(**kwargs):
201202
include_paths = b''
202203
else:
203204
if isinstance(include_paths, collections.Sequence):
204-
include_paths = ':'.join(include_paths)
205+
include_paths = os.pathsep.join(include_paths)
205206
elif not isinstance(include_paths, string_types):
206207
raise TypeError('include_paths must be a sequence of strings, or '
207-
'a colon-separated string, not ' +
208-
repr(include_paths))
208+
'a colon-separated (or semicolon-separated if '
209+
'Windows) string, not ' + repr(include_paths))
209210
if isinstance(include_paths, text_type):
210211
include_paths = include_paths.encode(fs_encoding)
211212
try:

0 commit comments

Comments
 (0)