In [ ]:
#
# 나는 julia 를 사랑하는가
#
In [ ]:
# Modules
In [1]:
whos()
In [2]:
# module 을 어디서 찾느냐.
# using, import, require 할때
# 어디서 module 을 찾느냐.
LOAD_PATH
Out[2]:
In [2]:
MY_LIB_DIR = "/home/dev/ex/julia/mylib"
Out[2]:
In [3]:
push!( LOAD_PATH, MY_LIB_DIR)
Out[3]:
In [6]:
LOAD_PATH
Out[6]:
In [7]:
typeof( LOAD_PATH)
Out[7]:
In [4]:
# 파일경로에 한글이 들어가있으면, 되나?
내라이브러리 = "/home/dev/ex/julia/내라이브러리"
Out[4]:
In [5]:
push!( LOAD_PATH, 내라이브러리)
Out[5]:
In [6]:
LOAD_PATH
Out[6]:
In [11]:
typeof( LOAD_PATH)
Out[11]:
In [ ]:
#
# ~/.juliarc.jl
# JULIA_LOAD_PATH
#
In [ ]:
# __init__()
In [31]:
pwd()
Out[31]:
In [38]:
println( "-------------------------------")
println( 내라이브러리)
println( "-------------------------------")
println( readall( "$내라이브러리/jmake.jl"))
In [39]:
#require( "jmake.jl")
using jmake
In [40]:
jmake.build()