|
|
@@ -62,6 +62,13 @@ class PluginHost(object): |
|
|
|
|
|
|
|
self.fPluginsInfo = [] |
|
|
|
|
|
|
|
if WINDOWS: |
|
|
|
self.msvcrt = cdll.msvcrt |
|
|
|
self.msvcrt._putenv.argtypes = [c_char_p] |
|
|
|
self.msvcrt._putenv.restype = None |
|
|
|
else: |
|
|
|
self.msvcrt = None |
|
|
|
|
|
|
|
def _add(self, pluginId): |
|
|
|
if len(self.fPluginsInfo) != pluginId: |
|
|
|
return |
|
|
@@ -513,6 +520,22 @@ class PluginHost(object): |
|
|
|
def get_host_osc_url_udp(self): |
|
|
|
return "" |
|
|
|
|
|
|
|
# extra |
|
|
|
def setenv(self, key, value): |
|
|
|
environ[key] = value |
|
|
|
|
|
|
|
if WINDOWS: |
|
|
|
keyvalue = "%s=%s" % (key, value) |
|
|
|
self.msvcrt._putenv(keyvalue.encode("utf-8")) |
|
|
|
|
|
|
|
# extra |
|
|
|
def unsetenv(self, key): |
|
|
|
environ.pop(key) |
|
|
|
|
|
|
|
if WINDOWS: |
|
|
|
keyrm = "%s=" % key |
|
|
|
self.msvcrt._putenv(keyrm.encode("utf-8")) |
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------------------------------------ |
|
|
|
# Main Window |
|
|
|
|
|
|
|