Skip to content

Commit

Permalink
update velib_python
Browse files Browse the repository at this point in the history
This brings it up to date with master and makes it the same as the
other projects. Also makes interface explicit on dbus calls, which
will become important once dbus-generator starts talking to acsystem
services.

victronenergy/venus#1310
  • Loading branch information
izak committed Sep 19, 2024
1 parent bdee319 commit c562b13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion dbus_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

# Victron packages
sys.path.insert(1, os.path.join(os.path.dirname(__file__), 'ext', 'velib_python'))
from vedbus import VeDbusService
from ve_utils import exit_on_error
from dbusmonitor import DbusMonitor
from settingsdevice import SettingsDevice
Expand Down
4 changes: 3 additions & 1 deletion gen_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def create_dbus_service(instance):
# Use a private bus, so we can have multiple services
bus = dbus.Bus.get_session(private=True) if 'DBUS_SESSION_BUS_ADDRESS' in os.environ else dbus.Bus.get_system(private=True)

dbusservice = VeDbusService("com.victronenergy.generator.startstop{}".format(instance), bus=bus)
dbusservice = VeDbusService(
"com.victronenergy.generator.startstop{}".format(instance),
bus=bus, register=False)
dbusservice.add_mandatory_paths(
processname=sys.argv[0],
processversion=softwareversion,
Expand Down

0 comments on commit c562b13

Please sign in to comment.