Permalink
Browse files

Add scripts to allow scons to be run just by typing scons at the root…

… of the repository.
  • Loading branch information...
jcsteh committed Nov 20, 2013
1 parent a378359 commit 9ed4dcb5159033babb751cb92c285b33773ce449
Showing with 16 additions and 0 deletions.
  1. +5 −0 scons.bat
  2. +11 −0 scons.py
@@ -0,0 +1,5 @@
@echo off
rem We need this script because .py probably isn't in pathext.
rem We can't just call python -c because it may not be in the path.
rem Python registers itself with the .py extension, so call scons.py.
%~dp0\scons.py %*
@@ -0,0 +1,11 @@
"""Run SCons from the NVDA source environment.
"""
import sys
import os
sys.path.append(os.path.abspath(
os.path.join(__file__, "..", "source")))
import sourceEnv
del sys.path[-1]
import SCons.Script
SCons.Script.main()

0 comments on commit 9ed4dcb

Please sign in to comment.