Closed fabiopavan closed 4 years ago
Unable to reproduce.
This works fine:
require "yaml"
p YAML.load_file(File.dirname($0) + "/setup/test.yaml")
C:\Users\larsch> D:\src\ocra\samples\yaml_test.exe
{"a"=>"b", "c"=>"d"}
Doing what you did, it works. But doing it like my source code, no way. I tried to use the following command:
ocra kernel.rb --add-all-core --gem-full
Then this:
ocra kernel.rb setup/* lib/* --add-all-core --gem-full
No way.
You're trying to read relative to called executable $0
instead of relative to unpacked script __FILE__
.
Oops, that's right, imbrish. I want to have the YAML files inside the executable.
Hi, larsh. I'm trying to compile a program, but YAML files are not included. They reside in setup folder. I wrote this command:
ocra kernel.rb lib/* setup/* --add-all-core --gem-full
The executable cannot find the YAML files, showing that they weren't included.