Skip to content

Commit

Permalink
cast env var to int
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrosengrant committed Oct 6, 2023
1 parent 5973b1f commit 5bda356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
VISIBLE_ICON = os.path.join(ASSETS_PATH, 'visible.png')
INVISIBLE_ICON = os.path.join(ASSETS_PATH, 'invisible.png')

MAX_MAP_SIZE_MB = os.environ.get('MAX_MAP_SIZE_MB', 350)
MAX_MAP_SIZE_MB = int(os.environ.get('MAX_MAP_SIZE_MB', 350))

__all__ = ['MainMenu', 'EditMeshMenu']

Expand Down
2 changes: 1 addition & 1 deletion plugin/vault_menu/VaultMenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
ORG_FOLDER = 'my org'


MAX_MAP_SIZE_MB = os.environ.get('MAX_MAP_SIZE_MB', 350)
MAX_MAP_SIZE_MB = int(os.environ.get('MAX_MAP_SIZE_MB', 350))


class VaultMenu:
Expand Down

0 comments on commit 5bda356

Please sign in to comment.