lib/u3d/installer.rb in u3d-1.2.1 vs lib/u3d/installer.rb in u3d-1.2.2

- old
+ new

@@ -144,12 +144,15 @@ else unity_root_path end end + # extra installation paths are stored in U3D_EXTRA_PATHS environment variable, + # following a standard PATH variable format. + # Returns an array of ruby style paths def extra_installation_paths return [] if ENV['U3D_EXTRA_PATHS'].nil? - ENV['U3D_EXTRA_PATHS'].strip.split(File::PATH_SEPARATOR) + ENV['U3D_EXTRA_PATHS'].strip.split(File::PATH_SEPARATOR).map { |p| File.expand_path p } end def find_installations_with_path(default_root_path: '', postfix: []) ([default_root_path] | extra_installation_paths).map do |path| UI.verbose "Looking for installed Unity version under #{path}"