lib/dev/Environment.rb in dev-1.0.231 vs lib/dev/Environment.rb in dev-1.0.232

- old
+ new

@@ -15,9 +15,18 @@ File.open(filename,"w") { |f| f.puts text2 } puts " replaced text in #{filename}" end end + def self.user_profile + ["USERPROFILE","HOME"].each {|v| + return ENV[v].gsub('\\','/') unless ENV[v].nil? + } + dir="~" + #dir=ENV["HOME"] unless ENV["HOME"].nil? + #dir=ENV["USERPROFILE"].gsub('\\','/') unless ENV["USERPROFILE"].nil? + end + def self.dev_root ["DEV_HOME","DEV_ROOT","USERPROFILE","HOME"].each {|v| return ENV[v].gsub('\\','/') unless ENV[v].nil? } dir="~"