diff options
-rw-r--r-- | klippy/__version__.py | 1 | ||||
-rw-r--r-- | klippy/klippy.py | 3 | ||||
-rw-r--r-- | scripts/buildcommands.py | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/klippy/__version__.py b/klippy/__version__.py new file mode 100644 index 00000000..6fc5aa69 --- /dev/null +++ b/klippy/__version__.py @@ -0,0 +1 @@ +__version__ = "0.1.0-rc4" diff --git a/klippy/klippy.py b/klippy/klippy.py index cfd4f45e..38d48d0c 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -23,8 +23,7 @@ import reactor import toolhead import util import webhooks - -__version__ = "0.1.0-rc4" +from __version__ import __version__ message_ready = "Printer is ready" diff --git a/scripts/buildcommands.py b/scripts/buildcommands.py index 394f9ffa..e68d327f 100644 --- a/scripts/buildcommands.py +++ b/scripts/buildcommands.py @@ -18,8 +18,7 @@ import zlib sys.path.append("./klippy") import msgproto - -import klippy.klippy +from __version__ import __version__ FILEHEADER = """ /* DO NOT EDIT! This is an autogenerated file. See scripts/buildcommands.py. */ @@ -567,7 +566,7 @@ def check_output(prog): def build_version(extra, cleanbuild): - version = klippy.klippy.__version__ + version = __version__ if not version: cleanbuild = False version = "?" |