a       = nil
b       = nil

Thread.new do
  data  = File.read("vars.rb")
  $SAFE = 4
  b     = Module.new.instance_eval{binding}

  eval(data, b)
end.join

p a
p b