Removed use of deprecated Pkg.dir.
authorTim Vaughan <tgvaughan@gmail.com>
Wed, 5 Sep 2018 13:55:36 +0000 (15:55 +0200)
committerTim Vaughan <tgvaughan@gmail.com>
Wed, 5 Sep 2018 13:55:36 +0000 (15:55 +0200)
src/forth.jl

index ead0bbc..d80d7e2 100644 (file)
@@ -1270,7 +1270,7 @@ oldCWD = ""
 SETLIBCWD_CFA = defPrimWord("SETLIBCWD", () -> begin
     global oldCWD = pwd()
     if !isfile("lib.4th") # Exception for debugging.
-        cd(Pkg.dir("forth","src"))
+        cd(@__DIR__) # Macro expands to CWD at compile time
     end
     return NEXT
 end)