teal-language / tl

The compiler for Teal, a typed dialect of Lua
MIT License
2.04k stars 101 forks source link

Absolute `global_env_def` paths don't work #589

Closed uramer closed 1 year ago

uramer commented 1 year ago

Using a global path for that setting produces an error: Error: could not predefine module

This is quite inconvenient, as it's common for the Lua environment (e. g. a game engine) to redefine the global environment, rather than for the particular script to do it.

uramer commented 1 year ago

Nevermind, it looks for any directories in include_dir