@@ -283,7 +283,7 @@ def compile(**kwargs):
283
283
:type source_comments: :class:`bool`
284
284
:param include_paths: an optional list of paths to find ``@import``\ ed
285
285
SASS/CSS source files
286
- :type include_paths: :class:`collections.Sequence`, :class:`str`
286
+ :type include_paths: :class:`collections.Sequence`
287
287
:param precision: optional precision for numbers. :const:`5` by default.
288
288
:type precision: :class:`int`
289
289
:param custom_functions: optional mapping of custom functions.
@@ -323,7 +323,7 @@ def compile(**kwargs):
323
323
:type source_map_filename: :class:`str`
324
324
:param include_paths: an optional list of paths to find ``@import``\ ed
325
325
SASS/CSS source files
326
- :type include_paths: :class:`collections.Sequence`, :class:`str`
326
+ :type include_paths: :class:`collections.Sequence`
327
327
:param precision: optional precision for numbers. :const:`5` by default.
328
328
:type precision: :class:`int`
329
329
:param custom_functions: optional mapping of custom functions.
@@ -365,7 +365,7 @@ def compile(**kwargs):
365
365
:type source_comments: :class:`bool`
366
366
:param include_paths: an optional list of paths to find ``@import``\ ed
367
367
SASS/CSS source files
368
- :type include_paths: :class:`collections.Sequence`, :class:`str`
368
+ :type include_paths: :class:`collections.Sequence`
369
369
:param precision: optional precision for numbers. :const:`5` by default.
370
370
:type precision: :class:`int`
371
371
:param custom_functions: optional mapping of custom functions.
@@ -556,13 +556,10 @@ def _get_file_arg(key):
556
556
source_map_filename = _get_file_arg ('source_map_filename' )
557
557
output_filename_hint = _get_file_arg ('output_filename_hint' )
558
558
559
- include_paths = kwargs .pop ('include_paths' , b'' ) or b''
560
- if isinstance (include_paths , collections .Sequence ):
561
- include_paths = os .pathsep .join (include_paths )
562
- elif not isinstance (include_paths , string_types ):
563
- raise TypeError ('include_paths must be a sequence of strings, or '
564
- 'a colon-separated (or semicolon-separated if '
565
- 'Windows) string, not ' + repr (include_paths ))
559
+ # #208: cwd is always included in include paths
560
+ include_paths = (os .getcwd (),)
561
+ include_paths += tuple (kwargs .pop ('include_paths' , ()) or ())
562
+ include_paths = os .pathsep .join (include_paths )
566
563
if isinstance (include_paths , text_type ):
567
564
include_paths = include_paths .encode (fs_encoding )
568
565
0 commit comments