summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-24 06:21:55 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-24 06:21:55 +0000
commit24a82091466f3b522b2ad2c9c0163d84e3e66314 (patch)
treef9f259a582523c9ac717db9bf5523219b8572442 /ruby.c
parent3fe16354fba0675f5384bb2e4d7b65fcc9df5cbc (diff)
$: changed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ruby.c b/ruby.c
index 0b516fc..c051543 100644
--- a/ruby.c
+++ b/ruby.c
@@ -685,6 +685,10 @@ ruby_prog_init()
rb_define_readonly_variable("$-p", &do_print);
rb_define_readonly_variable("$-l", &do_line);
+ if (rb_safe_level() == 0) {
+ addpath(".");
+ }
+
#if defined(_WIN32) || defined(DJGPP)
addpath(ruby_libpath());
#endif
@@ -701,9 +705,6 @@ ruby_prog_init()
addpath(RUBY_ARCHLIB);
#endif
addpath(RUBY_LIB);
- if (rb_safe_level() == 0) {
- addpath(".");
- }
rb_define_hooked_variable("$0", &rb_progname, 0, set_arg0);