move plugins.common only class into plugins module
This commit is contained in:
parent
0495bc2d79
commit
5616f4d575
9 changed files with 30 additions and 13 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
__pycache__
|
|
||||||
*.iml
|
*.iml
|
||||||
|
*.swp
|
||||||
|
*.wpu
|
||||||
.idea
|
.idea
|
||||||
|
__pycache__
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import plugins.common
|
import plugins
|
||||||
|
|
||||||
|
|
||||||
BATTERY_DIR = '/sys/class/power_supply/BAT0/'
|
BATTERY_DIR = '/sys/class/power_supply/BAT0/'
|
||||||
|
|
||||||
|
|
||||||
class PluginThread(plugins.common.PluginThreadCommon):
|
class PluginThread(plugins.PluginThreadCommon):
|
||||||
def __init__(self, section, config):
|
def __init__(self, section, config):
|
||||||
super(PluginThread, self).__init__(section, config)
|
super(PluginThread, self).__init__(section, config)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import time
|
import time
|
||||||
import plugins.common
|
import plugins
|
||||||
|
|
||||||
|
|
||||||
class PluginThread(plugins.common.PluginThreadCommon):
|
class PluginThread(plugins.PluginThreadCommon):
|
||||||
def __init__(self, section, config):
|
def __init__(self, section, config):
|
||||||
super(PluginThread, self).__init__(section, config)
|
super(PluginThread, self).__init__(section, config)
|
||||||
self.date_format = config.get(section, 'format', fallback='%c')
|
self.date_format = config.get(section, 'format', fallback='%c')
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import plugins.common
|
import plugins
|
||||||
import psutil
|
import psutil
|
||||||
|
|
||||||
|
|
||||||
class PluginThread(plugins.common.PluginThreadCommon):
|
class PluginThread(plugins.PluginThreadCommon):
|
||||||
def __init__(self, section, config):
|
def __init__(self, section, config):
|
||||||
super(PluginThread, self).__init__(section, config)
|
super(PluginThread, self).__init__(section, config)
|
||||||
self.part = config.get(section, 'part')
|
self.part = config.get(section, 'part')
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import os
|
import os
|
||||||
import plugins.common
|
import plugins
|
||||||
|
|
||||||
|
|
||||||
class PluginThread(plugins.common.PluginThreadCommon):
|
class PluginThread(plugins.PluginThreadCommon):
|
||||||
def __init__(self, section, config):
|
def __init__(self, section, config):
|
||||||
super(PluginThread, self).__init__(section, config)
|
super(PluginThread, self).__init__(section, config)
|
||||||
self.hide_ok = config.getboolean(section, 'hide_ok', fallback=False)
|
self.hide_ok = config.getboolean(section, 'hide_ok', fallback=False)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import psutil
|
import psutil
|
||||||
import plugins.common
|
import plugins
|
||||||
|
|
||||||
|
|
||||||
class PluginThread(plugins.common.PluginThreadCommon):
|
class PluginThread(plugins.PluginThreadCommon):
|
||||||
def __init__(self, section, config):
|
def __init__(self, section, config):
|
||||||
super(PluginThread, self).__init__(section, config)
|
super(PluginThread, self).__init__(section, config)
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import plugins.common
|
import plugins
|
||||||
|
|
||||||
|
|
||||||
class PluginThread(plugins.common.PluginThreadCommon):
|
class PluginThread(plugins.PluginThreadCommon):
|
||||||
def __init__(self, section, config):
|
def __init__(self, section, config):
|
||||||
super(PluginThread, self).__init__(section, config)
|
super(PluginThread, self).__init__(section, config)
|
||||||
self.hosts = config.get(section, 'hosts').split(',')
|
self.hosts = config.get(section, 'hosts').split(',')
|
||||||
|
|
15
vdstatus.wpr
Normal file
15
vdstatus.wpr
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#!wing
|
||||||
|
#!version=5.0
|
||||||
|
##################################################################
|
||||||
|
# Wing IDE project file #
|
||||||
|
##################################################################
|
||||||
|
[project attributes]
|
||||||
|
proj.directory-list = [{'dirloc': loc('.'),
|
||||||
|
'excludes': (),
|
||||||
|
'filter': u'Python Files',
|
||||||
|
'include_hidden': False,
|
||||||
|
'recursive': True,
|
||||||
|
'watch_for_changes': True}]
|
||||||
|
proj.file-list = [loc('conf.ini'),
|
||||||
|
loc('README.md')]
|
||||||
|
proj.file-type = 'shared'
|
Loading…
Reference in a new issue