Skip to content

Commit 9678e29

Browse files
committed
u3d/install: convert Windows paths to ruby paths when treating U3D_EXTRA_PATHS
1 parent 197b61b commit 9678e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/u3d/installer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def extra_installation_paths
154154
def find_installations_with_path(default_root_path: '', postfix: [])
155155
([default_root_path] | extra_installation_paths).map do |path|
156156
UI.verbose "Looking for installed Unity version under #{path}"
157-
pattern = File.join([path] + postfix)
157+
pattern = File.join([path.split(File::SEPARATOR)] + postfix)
158158
Dir.glob(pattern).map { |found_path| yield found_path }
159159
end.flatten
160160
end

0 commit comments

Comments
 (0)