Browse Source

update pynsmclient

master
Nils 4 years ago
parent
commit
8191995060
  1. 7
      template/qtgui/nsmclient.py

7
template/qtgui/nsmclient.py

@ -1,13 +1,12 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
PyNSMClient - A Non Session Manager Client-Library in one file.
PyNSMClient - A New Session Manager Client-Library in one file.
The Non-Session-Manager by Jonathan Moore Liles <male@tuxfamily.org>: http://non.tuxfamily.org/nsm/
New Session Manager, by LinuxAudio.org: https://github.com/linuxaudio/new-session-manager
With help from code fragments from https://github.com/attwad/python-osc ( DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE v2 )
API documentation: http://non.tuxfamily.org/nsm/API.html
MIT License
Copyright 2014-2020 Nils Hilbricht https://www.laborejo.org
@ -384,7 +383,7 @@ class NSMClient(object):
"""Return and save the nsm osc url or raise an error"""
nsmOSCUrl = getenv("NSM_URL")
if not nsmOSCUrl:
raise NSMNotRunningError("Non-Session-Manager environment variable $NSM_URL not found.")
raise NSMNotRunningError("New-Session-Manager environment variable $NSM_URL not found.")
else:
#osc.udp://hostname:portnumber/
o = urlparse(nsmOSCUrl)

Loading…
Cancel
Save