Skip to content

Commit 7f836bc

Browse files
committed
fix: allow toolkit.nu to be used as a module
1 parent 508cfbd commit 7f836bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolkit.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
use std assert
22

33
const script_pwd = path self .
4-
$env.TOPIARY_CONFIG_FILE = ($script_pwd | path join languages.ncl)
5-
$env.TOPIARY_LANGUAGE_DIR = ($script_pwd | path join languages)
64

75
def run_ide_check [
86
file: path
@@ -35,6 +33,8 @@ def print_progress [
3533
export def test_format [
3634
path: path # path to test
3735
] {
36+
$env.TOPIARY_CONFIG_FILE = ($script_pwd | path join languages.ncl)
37+
$env.TOPIARY_LANGUAGE_DIR = ($script_pwd | path join languages)
3838
let files = if ($path | path type) == 'file' {
3939
[$path]
4040
} else {

0 commit comments

Comments
 (0)