Rename sample module to hello world
This commit is contained in:
parent
2f5f2cffd8
commit
c5e3e8f368
5
modules/helloworld/__init__.py
Normal file
5
modules/helloworld/__init__.py
Normal file
@ -0,0 +1,5 @@
|
||||
from .helloWorld import HelloWorld
|
||||
|
||||
|
||||
def get_module():
|
||||
return HelloWorld()
|
12
modules/helloworld/helloWorld.py
Normal file
12
modules/helloworld/helloWorld.py
Normal file
@ -0,0 +1,12 @@
|
||||
from AbstractModule import AbstractModule
|
||||
|
||||
|
||||
class HelloWorld(AbstractModule):
|
||||
"""docstring for SampleModule."""
|
||||
|
||||
def __init__(self):
|
||||
super(HelloWorld, self).__init__()
|
||||
|
||||
def run(self):
|
||||
print("This shows that your installation is working correctly.")
|
||||
print("You can now start using the tool.")
|
@ -1,5 +0,0 @@
|
||||
from .sampleModule import SampleModule
|
||||
|
||||
|
||||
def get_module():
|
||||
return SampleModule()
|
@ -1,12 +0,0 @@
|
||||
from AbstractModule import AbstractModule
|
||||
|
||||
|
||||
class SampleModule(AbstractModule):
|
||||
"""docstring for SampleModule."""
|
||||
|
||||
def __init__(self):
|
||||
super(SampleModule, self).__init__()
|
||||
|
||||
def run(self):
|
||||
print("Command 1")
|
||||
print("Command 2")
|
Loading…
Reference in New Issue
Block a user