move things like IRCBot.VERSION to before imports (for utils.http)

This commit is contained in:
jesopo 2019-11-20 14:41:14 +00:00
parent 1823371380
commit 11c3104d02

View file

@ -1,13 +1,14 @@
VERSION: str = ""
with open("VERSION", "r") as version_file:
VERSION = "v%s" % version_file.read().strip()
SOURCE: str = "https://git.io/bitbot"
URL: str = "https://bitbot.dev"
import enum, queue, os, queue, select, socket, sys, threading, time, traceback import enum, queue, os, queue, select, socket, sys, threading, time, traceback
import typing, uuid import typing, uuid
from src import EventManager, Exports, IRCServer, Logging, ModuleManager from src import EventManager, Exports, IRCServer, Logging, ModuleManager
from src import PollHook, PollSource, Socket, Timers, utils from src import PollHook, PollSource, Socket, Timers, utils
with open("VERSION", "r") as version_file:
VERSION = "v%s" % version_file.read().strip()
SOURCE = "https://git.io/bitbot"
URL = "https://bitbot.dev"
class TriggerResult(enum.Enum): class TriggerResult(enum.Enum):
Return = 1 Return = 1
Exception = 2 Exception = 2