Skip to content

Commit

Permalink
Remove unnecessary dev mode check
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeantonopoulos-bcnvisuals committed Jan 9, 2025
1 parent c9831d8 commit 1912c84
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions client/ayon_openrv/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from .version import __version__

OPENRV_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
DEV_MODE = bool(os.getenv("AYON_USE_DEV"))

class OpenRVAddon(AYONAddon, IHostAddon, IPluginPaths):
name = "openrv"
Expand Down Expand Up @@ -35,7 +34,7 @@ def get_load_plugin_paths(self, host_name):
# inside OpenRV
return [os.path.join(loaders_dir, "openrv")]

def add_implementation_envs(self, env, app):
def add_implementation_envs(self, env, _app):
"""Modify environments to contain all required for implementation."""
# Set default environments if are not set via settings
defaults = {
Expand All @@ -48,11 +47,6 @@ def add_implementation_envs(self, env, app):
def get_launch_hook_paths(self, app):
if app.host_name != self.host_name:
return []
if DEV_MODE:
# In development mode, use the current directory's hooks
return [
os.path.join(os.getcwd(), "client/ayon_openrv/hooks")
]
return [
os.path.join(OPENRV_ROOT_DIR, "hooks")
]
Expand Down

0 comments on commit 1912c84

Please sign in to comment.