MCPcopy Create free account
hub / github.com/Image-Py/imagepy / read

Method read

imagepy/core/manager/configmanager.py:14–19  ·  view source on GitHub ↗

Read from the congigure file: preference.cfg

(cls)

Source from the content-addressed store, hash-verified

12
13 @classmethod
14 def read(cls):
15 """Read from the congigure file: preference.cfg """
16 if os.path.exists(cls.filename):
17 pkl_file = open(cls.filename,'r')
18 cls.cfg = eval(pkl_file.read().replace("\n","").encode('utf8'))
19 pkl_file.close()
20
21 @classmethod
22 def write(cls):

Callers 12

readwktFunction · 0.45
read_wfFunction · 0.45
extend_pluginsFunction · 0.45
build_documentFunction · 0.45
configmanager.pyFile · 0.45
OnOpenMethod · 0.45
runMethod · 0.45
runMethod · 0.45
deal_fileMethod · 0.45
on_runMethod · 0.45
runMethod · 0.45
on_openMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected