mirror of https://github.com/KLayout/klayout.git
Fixed #10.
This commit is contained in:
parent
683be55104
commit
7a5e7e8187
|
|
@ -1698,7 +1698,7 @@ RubyInterpreter::initialize (int main_argc, char **main_argv, int (*main_func) (
|
|||
// Remove setters for $0 and $PROGRAM_NAME (still both are linked) because
|
||||
// the setter does strange things with the process and the argv, specifically argv[0] above.
|
||||
static VALUE argv0 = Qnil;
|
||||
argv0 = rb_gv_get("0");
|
||||
argv0 = c2ruby<const char *> (main_argv [0]);
|
||||
rb_define_hooked_variable("$0", &argv0, 0, 0);
|
||||
rb_define_hooked_variable("$PROGRAM_NAME", &argv0, 0, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue