mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 13:57:44 +00:00
some refactorings
This commit is contained in:
parent
4f389723c0
commit
f5c60d2814
4 changed files with 12 additions and 13 deletions
|
|
@ -17,7 +17,7 @@
|
|||
import logging
|
||||
import platform # for python version nr
|
||||
|
||||
import boswatch.version
|
||||
from boswatch.utils import version
|
||||
|
||||
logging.debug("- %s loaded", __name__)
|
||||
|
||||
|
|
@ -43,19 +43,19 @@ def infoToLog():
|
|||
@return True or False on error"""
|
||||
logging.debug("BOSWatch and environment information")
|
||||
logging.debug("- Client version: %d.%d.%d",
|
||||
boswatch.version.client["major"],
|
||||
boswatch.version.client["minor"],
|
||||
boswatch.version.client["patch"])
|
||||
version.client["major"],
|
||||
version.client["minor"],
|
||||
version.client["patch"])
|
||||
logging.debug("- Server version: %d.%d.%d",
|
||||
boswatch.version.server["major"],
|
||||
boswatch.version.server["minor"],
|
||||
boswatch.version.server["patch"])
|
||||
version.server["major"],
|
||||
version.server["minor"],
|
||||
version.server["patch"])
|
||||
logging.debug("- Branch: %s",
|
||||
boswatch.version.branch)
|
||||
version.branch)
|
||||
logging.debug("- Release date: %02d.%02d.%4d",
|
||||
boswatch.version.date["day"],
|
||||
boswatch.version.date["month"],
|
||||
boswatch.version.date["year"])
|
||||
version.date["day"],
|
||||
version.date["month"],
|
||||
version.date["year"])
|
||||
logging.debug("- Python version: %s", platform.python_version())
|
||||
logging.debug("- Python build: %s", platform.python_build())
|
||||
logging.debug("- System: %s", platform.system())
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
@description: Some misc functions
|
||||
"""
|
||||
import logging
|
||||
from boswatch import version
|
||||
from boswatch.utils import version
|
||||
|
||||
logging.debug("- %s loaded", __name__)
|
||||
|
||||
|
|
|
|||
24
boswatch/utils/version.py
Normal file
24
boswatch/utils/version.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""!
|
||||
____ ____ ______ __ __ __ _____
|
||||
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
|
||||
/ __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
|
||||
/ /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
|
||||
/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
|
||||
German BOS Information Script
|
||||
by Bastian Schroll
|
||||
|
||||
@file: version.py
|
||||
@date: 14.12.2017
|
||||
@author: Bastian Schroll
|
||||
@description: Version numbers, branch and release date of BOSWatch
|
||||
"""
|
||||
import logging
|
||||
|
||||
logging.debug("- %s loaded", __name__)
|
||||
|
||||
client = {"major": 3, "minor": 0, "patch": 0}
|
||||
server = {"major": 3, "minor": 0, "patch": 0}
|
||||
date = {"day": 1, "month": 1, "year": 2019}
|
||||
branch = "develop"
|
||||
Loading…
Add table
Add a link
Reference in a new issue