mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 15:14:33 +00:00
Minor code cleanups (#1570)
This commit is contained in:
parent
2547f0296f
commit
7f88b5fff3
6 changed files with 9 additions and 10 deletions
|
@ -8,13 +8,12 @@ Before running node, we symlink js/node_modules to out/Debug/node_modules.
|
|||
import subprocess
|
||||
import sys
|
||||
import os
|
||||
import util
|
||||
from util import remove_and_symlink, root_path, run
|
||||
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
tools_path = os.path.join(root_path, "tools")
|
||||
third_party_path = os.path.join(root_path, "third_party")
|
||||
target_abs = os.path.join(third_party_path, "node_modules")
|
||||
target_rel = os.path.relpath(target_abs)
|
||||
|
||||
util.remove_and_symlink(target_rel, "node_modules", True)
|
||||
util.run(["node"] + sys.argv[1:], quiet=True)
|
||||
remove_and_symlink(target_rel, "node_modules", True)
|
||||
run(["node"] + sys.argv[1:], quiet=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue