2015-01-14 22:05:39 +01:00
|
|
|
# coding: utf-8
|
|
|
|
|
|
|
|
#This file contains a minimum host environment for running the fOOrth system.
|
|
|
|
|
2016-01-19 23:46:52 +01:00
|
|
|
if ARGV[0] == 'local'
|
|
|
|
require_relative 'lib/fOOrth'
|
|
|
|
puts "\nOption(local) Loaded fOOrth from the local code folder."
|
|
|
|
elsif defined?(XfOOrth)
|
2016-02-25 04:00:12 +01:00
|
|
|
puts "\nThe fOOrth system is already loaded."
|
2015-08-14 17:21:00 +02:00
|
|
|
else
|
|
|
|
begin
|
|
|
|
require 'fOOrth'
|
|
|
|
puts "\nLoaded fOOrth from the system gem."
|
|
|
|
rescue LoadError
|
2016-01-19 23:46:52 +01:00
|
|
|
require_relative 'lib/fOOrth'
|
2015-08-14 17:21:00 +02:00
|
|
|
puts "\nLoaded fOOrth from the local code folder."
|
|
|
|
end
|
2015-01-14 22:05:39 +01:00
|
|
|
end
|
|
|
|
|
2015-01-15 03:50:07 +01:00
|
|
|
puts
|
2015-08-14 17:08:35 +02:00
|
|
|
|
|
|
|
if __FILE__==$0
|
|
|
|
XfOOrth::main
|
|
|
|
end
|