aboutsummaryrefslogtreecommitdiff
path: root/modules/printconf.py
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-11-07 15:35:55 +0100
committerKarel Kočí <cynerd@email.cz>2015-11-07 15:35:55 +0100
commitccc21b09f752d583e3fdca694cd94e61a9fbaa69 (patch)
tree1cf19174ddcbd39c2dc05557823b5f7d9fc169ec /modules/printconf.py
parent2a7c2861b69da4570e90be17ad5e0f36b3ec0527 (diff)
downloadmcserver-wrapper-ccc21b09f752d583e3fdca694cd94e61a9fbaa69.tar.gz
mcserver-wrapper-ccc21b09f752d583e3fdca694cd94e61a9fbaa69.tar.bz2
mcserver-wrapper-ccc21b09f752d583e3fdca694cd94e61a9fbaa69.zip
Remove modules
Modules are not used any more. They are now useless.
Diffstat (limited to 'modules/printconf.py')
-rw-r--r--modules/printconf.py51
1 files changed, 0 insertions, 51 deletions
diff --git a/modules/printconf.py b/modules/printconf.py
deleted file mode 100644
index 708c421..0000000
--- a/modules/printconf.py
+++ /dev/null
@@ -1,51 +0,0 @@
-import os
-import sys
-import re
-import utils
-from utils import conf
-
-services = (
- utils.Service.argument,
- utils.Service.action,
- )
-
-__conf_file__ = False
-
-def argument(args):
- global __conf_file__
- if args[0] == '--file':
- __conf_file__ = True
- return 1
-
-def argument_short(l, args):
- return 0
-
-def argument_exec():
- conf.argument_conffile = __conf_file__
-
-def argument_help():
- if conf.action == 'config':
- print(' --file')
- print(' Print only used configuration file.')
-
-def action(args):
- if conf.action == None and args[0].lower() == 'config':
- conf.action = 'config'
- conf.action_module = sys.modules[__name__]
- return 1
- return 0
-
-def action_exec():
- if conf.argument_conffile:
- try:
- print(conf.__file__)
- except AttributeError:
- print('Default configuration used. No file associated.')
- else:
- print('TODO')
-
-def action_help():
- pass
-
-def action_full_help():
- pass