@@ -283,7 +283,7 @@ def compile(**kwargs):
283283 :type source_comments: :class:`bool`
284284 :param include_paths: an optional list of paths to find ``@import``\ ed
285285 SASS/CSS source files
286- :type include_paths: :class:`collections.Sequence`, :class:`str`
286+ :type include_paths: :class:`collections.Sequence`
287287 :param precision: optional precision for numbers. :const:`5` by default.
288288 :type precision: :class:`int`
289289 :param custom_functions: optional mapping of custom functions.
@@ -323,7 +323,7 @@ def compile(**kwargs):
323323 :type source_map_filename: :class:`str`
324324 :param include_paths: an optional list of paths to find ``@import``\ ed
325325 SASS/CSS source files
326- :type include_paths: :class:`collections.Sequence`, :class:`str`
326+ :type include_paths: :class:`collections.Sequence`
327327 :param precision: optional precision for numbers. :const:`5` by default.
328328 :type precision: :class:`int`
329329 :param custom_functions: optional mapping of custom functions.
@@ -365,7 +365,7 @@ def compile(**kwargs):
365365 :type source_comments: :class:`bool`
366366 :param include_paths: an optional list of paths to find ``@import``\ ed
367367 SASS/CSS source files
368- :type include_paths: :class:`collections.Sequence`, :class:`str`
368+ :type include_paths: :class:`collections.Sequence`
369369 :param precision: optional precision for numbers. :const:`5` by default.
370370 :type precision: :class:`int`
371371 :param custom_functions: optional mapping of custom functions.
@@ -556,13 +556,10 @@ def _get_file_arg(key):
556556 source_map_filename = _get_file_arg ('source_map_filename' )
557557 output_filename_hint = _get_file_arg ('output_filename_hint' )
558558
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 )
566563 if isinstance (include_paths , text_type ):
567564 include_paths = include_paths .encode (fs_encoding )
568565
0 commit comments