lib/dmeta.rb in andhapp-decoct-1.4.2 vs lib/dmeta.rb in andhapp-decoct-1.4.3

- old
+ new

@@ -1,7 +1,7 @@ require 'ftools' -require File.dirname(__FILE__) + '/../lib/dconstants' +require File.join(File.dirname(__FILE__), "..", 'lib', 'dconstants') module Decoct module Dmeta include Decoct::Dconstants @@ -19,10 +19,10 @@ if name.is_a?(Array) name.map {|x| create_dir(x)} else attr_reader name define_method("create_#{name}") do - path = "#{app_name}/#{name}" + path = "#{app_name}#{File::SEPARATOR}#{name}" Dir.mkdir(path) if !test(?d, path) end end end end \ No newline at end of file