Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/trepl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/th
diff options
context:
space:
mode:
Diffstat (limited to 'th')
-rw-r--r--th5
1 files changed, 5 insertions, 0 deletions
diff --git a/th b/th
index dfd8d50..ba798c3 100644
--- a/th
+++ b/th
@@ -104,6 +104,11 @@ end
local repl = require 'trepl'
local col = require 'trepl.colorize'
+-- load startup file
+if os.getenv('TREPLSTARTUP') and not (interactive or statement) then
+ dofile(os.getenv('TREPLSTARTUP'))
+end
+
-- load gfx env?
if lgfx then
local ok = pcall(require, 'gfx.js')