|
|
| 33 |
parser = OptionParser() |
33 |
parser = OptionParser() |
| 34 |
(options, args) = parser.parse_args() |
34 |
(options, args) = parser.parse_args() |
| 35 |
|
35 |
|
| 36 |
|
36 |
if os.path.isdir(constants.LOCAL_NSC_PATH): |
| 37 |
print "# Build NSC" |
37 |
print "# Build NSC" |
| 38 |
print "Entering directory `%s'" % constants.LOCAL_NSC_PATH |
38 |
cwd = os.getcwd() |
| 39 |
cwd = os.getcwd() |
39 |
os.chdir(constants.LOCAL_NSC_PATH) |
| 40 |
os.chdir(constants.LOCAL_NSC_PATH) |
40 |
print "Entering directory `%s'" % constants.LOCAL_NSC_PATH |
| 41 |
try: |
41 |
try: |
| 42 |
build_nsc() |
42 |
build_nsc() |
| 43 |
finally: |
43 |
finally: |
| 44 |
os.chdir(cwd) |
44 |
os.chdir(cwd) |
| 45 |
print "Leaving directory `%s'" % constants.LOCAL_NSC_PATH |
45 |
print "Leaving directory `%s'" % constants.LOCAL_NSC_PATH |
| 46 |
|
46 |
|
| 47 |
|
47 |
|
| 48 |
print "# Build NS-3" |
48 |
print "# Build NS-3" |