def create_project_configuration(filename):
    """Create a project configuration file which contains a configuration
       that might make sense."""
    home = os.path.expanduser("~")
    project_root_folder = os.path.join(home, "hwr-experiments")
    config = {'root': project_root_folder,
              'nntoolkit': None,
              'dropbox_app_key': None,
              'dropbox_app_secret': None,
              'dbconfig': os.path.join(home, "hwrt-config/db.config.yml"),
              'data_analyzation_queue': [{'Creator': None}],
              'worker_api_key': '1234567890abc',
              'environment': 'development'}
    with open(filename, 'w') as f:
        yaml.dump(config, f, default_flow_style=False)
def create_project_configuration ( filename ) : home = os . path . expanduser ( "~" ) project_root_folder = os . path . join ( home , "hwr-experiments" ) config = { 'root' : project_root_folder , 'nntoolkit' : None , 'dropbox_app_key' : None , 'dropbox_app_secret' : None , 'dbconfig' : os . path . join ( home , "hwrt-config/db.config.yml" ) , 'data_analyzation_queue' : [ { 'Creator' : None } ] , 'worker_api_key' : '1234567890abc' , 'environment' : 'development' } with open ( filename , 'w' ) as f : yaml . dump ( config , f , default_flow_style = False )
Create a project configuration file which contains a configuration
       that might make sense.