move plugins.common only class into plugins module

This commit is contained in:
Von Random 2016-11-28 14:48:11 +03:00
parent 0495bc2d79
commit 5616f4d575
9 changed files with 30 additions and 13 deletions

4
.gitignore vendored
View file

@ -1,3 +1,5 @@
__pycache__
*.iml
*.swp
*.wpu
.idea
__pycache__

View file

@ -1,10 +1,10 @@
import plugins.common
import plugins
BATTERY_DIR = '/sys/class/power_supply/BAT0/'
class PluginThread(plugins.common.PluginThreadCommon):
class PluginThread(plugins.PluginThreadCommon):
def __init__(self, section, config):
super(PluginThread, self).__init__(section, config)

View file

@ -1,8 +1,8 @@
import time
import plugins.common
import plugins
class PluginThread(plugins.common.PluginThreadCommon):
class PluginThread(plugins.PluginThreadCommon):
def __init__(self, section, config):
super(PluginThread, self).__init__(section, config)
self.date_format = config.get(section, 'format', fallback='%c')

View file

@ -1,8 +1,8 @@
import plugins.common
import plugins
import psutil
class PluginThread(plugins.common.PluginThreadCommon):
class PluginThread(plugins.PluginThreadCommon):
def __init__(self, section, config):
super(PluginThread, self).__init__(section, config)
self.part = config.get(section, 'part')

View file

@ -1,8 +1,8 @@
import os
import plugins.common
import plugins
class PluginThread(plugins.common.PluginThreadCommon):
class PluginThread(plugins.PluginThreadCommon):
def __init__(self, section, config):
super(PluginThread, self).__init__(section, config)
self.hide_ok = config.getboolean(section, 'hide_ok', fallback=False)

View file

@ -1,8 +1,8 @@
import psutil
import plugins.common
import plugins
class PluginThread(plugins.common.PluginThreadCommon):
class PluginThread(plugins.PluginThreadCommon):
def __init__(self, section, config):
super(PluginThread, self).__init__(section, config)

View file

@ -1,9 +1,9 @@
import os
import random
import plugins.common
import plugins
class PluginThread(plugins.common.PluginThreadCommon):
class PluginThread(plugins.PluginThreadCommon):
def __init__(self, section, config):
super(PluginThread, self).__init__(section, config)
self.hosts = config.get(section, 'hosts').split(',')

15
vdstatus.wpr Normal file
View 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'