lib/sandi_meter/cli.rb in sandi_meter-1.0.0 vs lib/sandi_meter/cli.rb in sandi_meter-1.0.1

- old
+ new

@@ -73,10 +73,11 @@ html_generator = SandiMeter::HtmlGenerator.new html_generator.copy_assets!(cli.config[:path]) html_generator.generate_data!(cli.config[:path]) html_generator.generate_details!(cli.config[:path], data) - system "open sandi_meter/index.html" + index_html_path = File.join(cli.config[:path], 'sandi_meter/index.html') + system "open #{index_html_path}" else puts "WARNING!!! HTML mode works only if you scan folder." end end end