mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #34 from ynput/enhancement/harmony-env-variable-prefix
Harmony: Use AYON prefix in env variables
This commit is contained in:
commit
c35c104e1e
4 changed files with 5 additions and 5 deletions
|
|
@ -52,7 +52,7 @@ Because Harmony projects are directories, this integration uses `.zip` as work f
|
|||
|
||||
### Show Workfiles on launch
|
||||
|
||||
You can show the Workfiles app when Harmony launches by setting environment variable `AVALON_HARMONY_WORKFILES_ON_LAUNCH=1`.
|
||||
You can show the Workfiles app when Harmony launches by setting environment variable `AYON_HARMONY_WORKFILES_ON_LAUNCH=1`.
|
||||
|
||||
## Developing
|
||||
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ function start() {
|
|||
/** hostname or ip of server - should be localhost */
|
||||
var host = '127.0.0.1';
|
||||
/** port of the server */
|
||||
var port = parseInt(System.getenv('AVALON_HARMONY_PORT'));
|
||||
var port = parseInt(System.getenv('AYON_HARMONY_PORT'));
|
||||
|
||||
// Attach the client to the QApplication to preserve.
|
||||
var app = QCoreApplication.instance();
|
||||
|
|
|
|||
|
|
@ -189,14 +189,14 @@ def launch(application_path, *args):
|
|||
install_host(harmony)
|
||||
|
||||
ProcessContext.port = random.randrange(49152, 65535)
|
||||
os.environ["AVALON_HARMONY_PORT"] = str(ProcessContext.port)
|
||||
os.environ["AYON_HARMONY_PORT"] = str(ProcessContext.port)
|
||||
ProcessContext.application_path = application_path
|
||||
|
||||
# Launch Harmony.
|
||||
setup_startup_scripts()
|
||||
check_libs()
|
||||
|
||||
if not os.environ.get("AVALON_HARMONY_WORKFILES_ON_LAUNCH", False):
|
||||
if not os.environ.get("AYON_HARMONY_WORKFILES_ON_LAUNCH", False):
|
||||
open_empty_workfile()
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -1271,7 +1271,7 @@
|
|||
"icon": "{}/app_icons/harmony.png",
|
||||
"host_name": "harmony",
|
||||
"environment": {
|
||||
"AVALON_HARMONY_WORKFILES_ON_LAUNCH": "1"
|
||||
"AYON_HARMONY_WORKFILES_ON_LAUNCH": "1"
|
||||
},
|
||||
"variants": {
|
||||
"21": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue