4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/pione/system/init.rb', line 4
def init
Thread.abort_on_exception = true
Global::Config.load(Global.config_path)
unless Global.temporary_directory.exist?
Global.temporary_directory.mkdir(0777)
end
Temppath.update_basedir(Global.my_temporary_directory + "others_%s" % Util::UUID.generate)
unless Global.file_cache_directory.exist?
Global.file_cache_directory.mkdir(0777)
end
unless Global.file_cache_directory.exist?
Global.file_cache_directory.mkdir(0777)
end
Global.system_logger
end
|