equal
deleted
inserted
replaced
74 return bool |
74 return bool |
75 else: |
75 else: |
76 return value_if_missing |
76 return value_if_missing |
77 |
77 |
78 |
78 |
|
79 # Reads the NS-3 configuration file and returns a list of enabled modules. |
|
80 # |
|
81 # This function first looks for the ns3 configuration file (.ns3rc) in |
|
82 # the current working directory and then looks in the ~ directory. |
79 def read_config_file(): |
83 def read_config_file(): |
80 '''Reads the NS-3 configuration file and returns a list of enabled modules. |
|
81 |
|
82 This function first looks for the ns3 configuration file (.ns3rc) |
|
83 in the current working directory and then looks in the ~ |
|
84 directory. |
|
85 |
|
86 ''' |
|
87 |
|
88 # By default, all modules will be enabled, examples will be disabled, |
84 # By default, all modules will be enabled, examples will be disabled, |
89 # and tests will be disabled. |
85 # and tests will be disabled. |
90 modules_enabled = ['all_modules'] |
86 modules_enabled = ['all_modules'] |
91 examples_enabled = False |
87 examples_enabled = False |
92 tests_enabled = False |
88 tests_enabled = False |