moved version tag to pocket_friends __init__.py

This commit is contained in:
Nick Dyer
2021-05-29 22:17:22 -04:00
parent af7a4f0a80
commit 721cb1c3ab
4 changed files with 14 additions and 13 deletions

View File

@@ -10,8 +10,6 @@ from .button_test import button_test
from .menus import Menu
from ..hardware.gpio_handler import GPIOHandler, Constants
dev_version = '0.0.1'
try:
importlib.util.find_spec('RPi.GPIO')
import RPi.GPIO as GPIO
@@ -95,7 +93,8 @@ def main():
# The following defines all of the options in the various different menus.
main_menu = Menu('Pocket Friends Dev Menu {0}\nGame Version {1}'.format(dev_version, pocket_friends.game_files.game.version))
main_menu = Menu(
'Pocket Friends Dev Menu {0}\nGame Version {1}'.format(dev_version, pocket_friends.game_files.game.version))
main_menu.add_option(Menu.Option('Start Game', start_game))
main_menu.add_option(Menu.Option('Button Test', run_button_test))
main_menu.add_option(Menu.Option('Restart Dev Menu', quit_with_error))