lib/sapos/print/printer.rb in sapos-print-1.0.3 vs lib/sapos/print/printer.rb in sapos-print-1.0.4
- old
+ new
@@ -87,10 +87,10 @@
return false
end
return true
when 'windows'
- command = "COPY "+'"'+filename.gsub("/","\\")+'"'+'"\\\\%COMPUTERNAME%\\'+@config.printer
+ command = "COPY "+'"'+opts[:file].to_s.gsub("/","\\")+'"'+'"\\\\%COMPUTERNAME%\\'+@config.printer
#command = "copy #{opts[:file]} "+'"\\\\%COMPUTERNAME%\\'+@config.printer
if !system(command)
puts "Not executed"
return false
end
\ No newline at end of file