Browse Source

Use CARLA_CLIENT_NAME env var to set client name

tags/1.9.6
falkTX 11 years ago
parent
commit
0b8a5dca4f
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      source/carla_host.py

+ 4
- 3
source/carla_host.py View File

@@ -64,8 +64,9 @@ except:
# ------------------------------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------------------------------
# Session Management support # Session Management support


LADISH_APP_NAME = os.getenv("LADISH_APP_NAME")
NSM_URL = os.getenv("NSM_URL")
CARLA_CLIENT_NAME = os.getenv("CARLA_CLIENT_NAME")
LADISH_APP_NAME = os.getenv("LADISH_APP_NAME")
NSM_URL = os.getenv("NSM_URL")


# ------------------------------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------------------------------
# Host Window # Host Window
@@ -123,7 +124,7 @@ class HostWindow(QMainWindow):
self.fClientName = "Carla" # "Carla.tmp" self.fClientName = "Carla" # "Carla.tmp"
self.fSessionManagerName = "Non Session Manager" self.fSessionManagerName = "Non Session Manager"
else: else:
self.fClientName = "Carla"
self.fClientName = CARLA_CLIENT_NAME or "Carla"
self.fSessionManagerName = "" self.fSessionManagerName = ""


# ---------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------


Loading…
Cancel
Save