pxt-ev3/cmds/pxtrequire.ts

7 lines
316 B
TypeScript
Raw Normal View History

2017-06-29 16:47:26 +02:00
/// <reference path="../node_modules/pxt-core/built/pxtlib.d.ts" />
import * as path from "path";
export let pxtCore = require("pxt-core");
// require.resolve() gives path to [pxt dir]/built/pxt.js, so move up twice to get pxt root dir
export let pxtCoreDir = path.resolve(require.resolve("pxt-core"), "..", "..");