Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix absolute path detection on Windows #451

Closed
wants to merge 3 commits into from

2 participants

This page is out of date. Refresh to see the latest.
View
4 lib/compass/commands/project_base.rb
@@ -84,8 +84,8 @@ def determine_project_directory(working_path, options)
end
def absolute_path?(path)
- # This is only going to work on unix, gonna need a better implementation.
- path.index(File::SEPARATOR) == 0
+ # Pretty basic implementation
+ path.index(File::SEPARATOR) == 0 || path.index(':') == 1
end
def skip_extension_discovery?
View
4 lib/compass/configuration/adapters.rb
@@ -38,8 +38,8 @@ def resolve_additional_import_paths
end
def absolute_path?(path)
- # This is only going to work on unix, gonna need a better implementation.
- path.index(File::SEPARATOR) == 0
+ # Pretty basic implementation
+ path.index(File::SEPARATOR) == 0 || path.index(':') == 1
end
def to_sass_engine_options
Something went wrong with that request. Please try again.