utils.py
changeset 7063 9f950840670b
parent 7024 4392d52b3536
child 7865 eb55045524be
equal deleted inserted replaced
7062:bfac4de27c06 7063:9f950840670b
    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