File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11#  Nimjl
22#  Licensed and distributed under MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
3- version       =  " 0.7.2 " 
3+ version       =  " 0.7.3 " 
44author        =  " Regis Caillaud" 
55description   =  " Nim Julia bridge" 
66license       =  " MIT" 
Original file line number Diff line number Diff line change 11import  std/ os
22import  std/ strutils
33
4- const  JuliaBinPath  =  gorge (" julia -E Sys.BINDIR" replace (" \" " " " 
4+ proc  JuliaBinPath * () : string  {.compileTime .} = 
5+   gorge (" julia -E Sys.BINDIR" replace (" \" " " " 
56
67#  JuliaPath should be parent folder of Julia-bindir
78#  This is resolved AT COMPILE TIME. Therefore, using the environment of the machine that compile.
89#  If you want to ship a binary, you need to install in a fixed path and pass this path using -d:JuliaPath="/path/to/Julia"
9- const  JuliaPath *  {.strdefine .} =  if  not  existsEnv (" JULIA_PATH" JuliaBinPath .parentDir ().normalizedPath ().absolutePath () else : getEnv (" JULIA_PATH" 
10- static :
11-   echo  JuliaPath 
10+ const  JuliaPath *  {.strdefine .} =  if  not  existsEnv (" JULIA_PATH" JuliaBinPath parentDir ().normalizedPath () else : getEnv (" JULIA_PATH" 
11+ 
1212const  JuliaIncludesPath *  =  JuliaPath  /  " include" /  " julia" 
1313const  JuliaHeader *  =  " julia.h" 
1414const  JuliaLibPath *  =  JuliaPath  /  " lib" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments