Commit graph

36 commits

Author SHA1 Message Date
Jakub Trllo
248336bb0d
General: Lib code cleanup (#5003)
* implemented 'is_func_signature_supported' function

* 'WeakMethod' can be imported from 'python_2_comp' all the time

* simplified events logic for callback registration

* modified docstrings in publish lib

* removed unused imports

* fixed 'run_openpype_process' docstring
2023-05-24 10:51:35 +02:00
Jakub Ježek
ca92f15042
Merge branch 'develop' into extract_burnin_fix_env_pythonhome 2023-03-31 22:33:37 +02:00
Roy Nieterau
35a5d5f172
Revert for backwards compatibility of client code
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-03-30 19:43:33 +02:00
Roy Nieterau
3fae1f8521 Just some grammar tweaks 2023-03-30 13:59:22 +02:00
Roy Nieterau
168a49dba6 Remove both PYTHONPATH and PYTHONHOME
- Fixes an issue with Houdini Py3.7 conflict with OpenPype Py3.9 because Houdini sets `PYTHONHOME`
2023-03-29 18:00:03 +02:00
Roy Nieterau
9a71cfec41 Allow passing an empty environment explicitly like env = {} 2023-03-29 17:57:12 +02:00
Toke Jepsen
b7f6589886
Merge branch 'develop' into feature/OP-3278_camera-focal-length 2023-03-29 11:12:09 +02:00
Toke Jepsen
7264ce3aaf
Update openpype/lib/execute.py 2023-03-29 09:17:20 +01:00
Toke Stuart Jepsen
e9eb09e100 Initial working version 2023-03-22 12:58:33 +00:00
Roy Nieterau
28b424bf2f
Publisher: Windows reduce command window pop-ups during Publishing (#4672)
* Avoid command pop-ups during publishing (tip by @iLLiCiTiT)

* No need to pass creationflags because it's already done in `run_subprocess`

* Hide command window for `shell=True` calls

* Update openpype/lib/execute.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

---------

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-03-22 12:13:21 +01:00
Jakub Trllo
c177c26c86 safe access to constants 2023-02-22 14:07:38 +01:00
Jakub Trllo
ed909ca527 add 'CREATE_NO_WINDOW' to flags (if is available) 2023-02-22 14:07:38 +01:00
Jakub Trllo
0f9e12955c look for creationflags in kwargs instead of explicit argument 2023-02-22 14:07:38 +01:00
Jakub Trllo
e69ba621d1 unify quotes 2023-02-22 14:07:38 +01:00
Jakub Trllo
567b6dfb14 on windows always autofill creation flags 2023-02-22 14:07:38 +01:00
Jakub Trllo
e0879fd67d Pass creation flags on windows in UI executables 2023-02-22 14:07:38 +01:00
Jakub Trllo
b5b155828a use 'backslashreplace' on error of output decoding 2023-02-09 20:10:41 +01:00
Jakub Trllo
882e00baef use Logger instead of PypeLogger 2022-08-24 15:52:47 +02:00
iLLiCiTiT
77232a07ef replace distutils find_executable with custom version 2022-02-28 20:52:21 +01:00
Jakub Trllo
cd7f54a8f5 created function to run detached process 2022-02-21 17:24:05 +01:00
Ondrej Samohel
701b9275a4
Merge remote-tracking branch 'origin/develop' into cosmetics_typos_01 2022-01-21 00:22:17 +01:00
Roy Nieterau
136a163122 Fix typos in openpype/lib 2022-01-16 13:16:22 +01:00
iLLiCiTiT
2a0f7b48d9 fix how run_openpype_process works 2022-01-10 14:06:12 +01:00
iLLiCiTiT
6de956dae2 implemented functions to run openpype subprocess with cleanin environments 2022-01-06 16:28:03 +01:00
iLLiCiTiT
4ab54f4d73 added deprecation warning 2022-01-06 16:27:41 +01:00
iLLiCiTiT
613e9ff2fb renamed get_pype_execute_args to get_openpype_execute_args 2022-01-06 16:02:30 +01:00
iLLiCiTiT
86bdddf343 renamed linux_app_launcher to app_launcher 2021-12-22 18:30:40 +01:00
iLLiCiTiT
3e096f41be added helper function to return linux app launcher arguments 2021-12-14 18:00:07 +01:00
iLLiCiTiT
0544147c6f log stderr as info 2021-11-25 13:13:41 +01:00
iLLiCiTiT
30cadfd6ad don't use 'split_command_to_list' which may break paths if they are incorrectly used 2021-09-20 13:09:01 +02:00
iLLiCiTiT
3d9970aa4f added function 'path_to_subprocess_arg' which decide if path should be wrapped in quotes 2021-09-16 15:57:25 +02:00
iLLiCiTiT
004b2c5a5e use posix argument only on windows 2021-09-16 15:13:36 +02:00
iLLiCiTiT
7f47367fbf added docstring for split_command_to_list and modified 2021-09-16 15:12:35 +02:00
iLLiCiTiT
1f5f7ac25d added function 'split_command_to_list' 2021-09-16 14:32:02 +02:00
iLLiCiTiT
97103ab89c defined custom constant as subprocess may not have defined CREATE_NO_WINDOW constant in all python builds 2021-05-06 20:37:44 +02:00
Milan Kolar
8432e94615 rename folder 2021-04-01 18:54:46 +02:00
Renamed from pype/lib/execute.py (Browse further)