MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / setAttributes

Method setAttributes

src/Config.py:441–450  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

439
440 # Expose arguments as class attributes
441 def setAttributes(self):
442 # Set attributes from arguments
443 if self.arguments:
444 args = vars(self.arguments)
445 for key, val in args.items():
446 if type(val) is list:
447 val = val[:]
448 if key in ("data_dir", "log_dir"):
449 val = val.replace("\\", "/")
450 setattr(self, key, val)
451
452 def loadPlugins(self):
453 from Plugin import PluginManager

Callers 1

parseMethod · 0.95

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected