code/superant.com.rwdtinkerbackwindow/listzips.rb in rwdruby-1.05 vs code/superant.com.rwdtinkerbackwindow/listzips.rb in rwdruby-1.06
- old
+ new
@@ -3,11 +3,17 @@
applet = inffile.gsub(/\.zip$/, "")
@a_installapplet = applet
end
-def listzipfilestoinstall
- startlangdir = File.join($progdir, $zipslocation )
+def listzipfilestoinstall
+
+ if $zipslocation.slice(0,1) == "/" || $zipslocation.include?(":")
+ startlangdir = $zipslocation
+ else
+ startlangdir = File.join($progdir, $zipslocation )
+ end
+
#get a list of the files and subdirectories on the starting directory only
a = Array.new(Dir["#{startlangdir}/*"].entries.sort)