aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-03-31 09:40:15 -0400
committerRalph Amissah <ralph@amissah.com>2013-03-31 09:40:15 -0400
commit48ef624d3117bf5c1a175c65ce0499e1925b9114 (patch)
tree2706e6da5cea4fa63a98c2356899bf76ca4c77fb /lib
parentv4 v3: CHANGELOGs note on future closing of v3 & addendum to [71e8f19] in 4.0.18 (diff)
v4: sysenv, yamlrc cosmetic
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v4/sysenv.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/sisu/v4/sysenv.rb b/lib/sisu/v4/sysenv.rb
index d77672a6..d9f2a080 100644
--- a/lib/sisu/v4/sysenv.rb
+++ b/lib/sisu/v4/sysenv.rb
@@ -336,18 +336,20 @@ module SiSU_Env
break
else
f=S_CONF[:rc_yml]
- if FileTest.exist?("#{v}/#{f}")
+ p_f="#{v}/#{f}"
+ if FileTest.exist?(p_f)
require 'yaml'
@@sisurc_path=v
- @@rc=YAML::load(File::open("#{@@sisurc_path}/#{f}"))
+ @@rc=YAML::load(File::open(p_f))
break
end
unless @@rc
f='sisurc.yaml'
- if FileTest.exist?("#{v}/#{f}")
+ p_f="#{v}/#{f}"
+ if FileTest.exist?(p_f)
require 'yaml'
@@sisurc_path=v
- @@rc=YAML::load(File::open("#{@@sisurc_path}/#{f}"))
+ @@rc=YAML::load(File::open(p_f))
break
end
end