aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/param.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/param.rb')
-rw-r--r--lib/sisu/v3/param.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v3/param.rb b/lib/sisu/v3/param.rb
index 77b4e8e7..f1c4aa3a 100644
--- a/lib/sisu/v3/param.rb
+++ b/lib/sisu/v3/param.rb
@@ -90,6 +90,7 @@ module SiSU_Param
and @opt.f_pth[:pth] != Dir.pwd #BUG check
# you may need to change Dir.pwd to @opt.f_pth[:pth] where the latter
# has a path value that is different, however, f_pth is not always set!
+ Dir.chdir(@opt.f_pth[:pth])
p '-- bug alert -- '
p __FILE__ + ':' + __LINE__.to_s
p 'f_pth ' + @opt.f_pth[:pth]
@@ -1076,6 +1077,7 @@ module SiSU_Param
@rgx_image=/(?:^|[^_\\])\{(?:\s*|\~\^\s+)(\S+?\.(?:png|jpg|gif)\b)/m
@rgx_audio=/\{\s*(\S+?\.(?:mp3|ogg))/
@rgx_mm=/\{\s*(\S+?\.(?:ogg|mpeg))/ #expand and distinguish ogg
+ Dir.chdir(@opt.f_pth[:pth])
begin
rescue
SiSU_Errors::InfoError.new($!,$@,@opt.cmd,@fns).error do
@@ -1469,7 +1471,6 @@ module SiSU_Param
end
@papersize_array=@papersize.scan(/(?:a4|letter|legal|book|a5|b5)/i)
fn=@opt.fno #decide what to do a filesize on .ssm tells very little about actual document size
- #fn=@fns=~/\.ssm\.sst$/ ? @fns.gsub(/.sst/,'') : @fns #decide what to do a filesize on .ssm tells very little about actual document size
@filesize=(File.size(fn)).to_s
if @sys.openssl !=false
skin=@doc_skin \