mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the background job creation fails if there is only a version-specific python binary available in PATH. Fixes #5480
This commit is contained in:
parent
943495de31
commit
f61448eea2
@ -27,4 +27,5 @@ Bug fixes
|
||||
| `Issue #5449 <https://redmine.postgresql.org/issues/5449>`_ - Fixed an issue while comparing the two identical schemas using the schema diff tool.
|
||||
| `Issue #5466 <https://redmine.postgresql.org/issues/5466>`_ - Correct ipv4 "all interfaces" address in the container docs, per Frank Limpert.
|
||||
| `Issue #5469 <https://redmine.postgresql.org/issues/5469>`_ - Fixed an issue where select2 hover is inconsistent for the SSL field in create server dialog.
|
||||
| `Issue #5473 <https://redmine.postgresql.org/issues/5473>`_ - Fixed post-login redirect location when running in server mode under a non-default root.
|
||||
| `Issue #5473 <https://redmine.postgresql.org/issues/5473>`_ - Fixed post-login redirect location when running in server mode under a non-default root.
|
||||
| `Issue #5480 <https://redmine.postgresql.org/issues/5480>`_ - Fixed an issue where the background job creation fails if there is only a version-specific python binary available in PATH.
|
@ -280,7 +280,9 @@ class BatchProcess(object):
|
||||
# anyway be the redundant value in paths.
|
||||
if not current_app.PGADMIN_RUNTIME:
|
||||
paths.insert(0, os.path.join(u(sys.prefix), u'bin'))
|
||||
interpreter = which(u'python', paths)
|
||||
python_binary_name = 'python{0}'.format(sys.version_info[0]) \
|
||||
if sys.version_info[0] >= 3 else 'python'
|
||||
interpreter = which(u(python_binary_name), paths)
|
||||
|
||||
p = None
|
||||
cmd = [
|
||||
|
Loading…
Reference in New Issue
Block a user