MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / get_data_dir

Function get_data_dir

brainworkshop.py:174–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172 return os.path.expanduser('~/.%s' % (name.lower().replace(' ', '')))
173
174def get_data_dir():
175 rtrn = get_argv('--datadir')
176 if rtrn:
177 return rtrn
178 else:
179 return os.path.join(get_settings_path('Brain Workshop'), FOLDER_DATA)
180def get_res_dir():
181 rtrn = get_argv('--resdir')
182 if rtrn:

Callers 12

edit_config_iniFunction · 0.85
dump_pyglet_infoFunction · 0.85
load_last_userFunction · 0.85
save_last_userFunction · 0.85
parse_configFunction · 0.85
rewrite_configfileFunction · 0.85
brainworkshop.pyFile · 0.85
parse_statsMethod · 0.85
parse_statsfileMethod · 0.85
submit_sessionMethod · 0.85
end_sessionFunction · 0.85
get_usersFunction · 0.85

Calls 2

get_argvFunction · 0.85
get_settings_pathFunction · 0.85

Tested by

no test coverage detected