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

Function get_main_dir

brainworkshop.py:155–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153def main_is_frozen():
154 return hasattr(sys, "frozen") # py2exe
155def get_main_dir():
156 if main_is_frozen():
157 return os.path.dirname(sys.executable)
158 return sys.path[0]
159
160def get_settings_path(name):
161 '''Get a directory to save user preferences.

Callers 1

get_res_dirFunction · 0.85

Calls 1

main_is_frozenFunction · 0.85

Tested by

no test coverage detected