mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix the issue where Import/Export was failing in linux runtime. Fixes #2166
Issue: Changes done by Ashesh in pgAdmin4.py file for setting up PYTHONHOME variable to sys.prefix was applicable only for windows only. Additionally I have also added exception handling for file provided by user for Backup/Restore/Import/Export.
This commit is contained in:
committed by
Dave Page
parent
533833cb02
commit
bc63652811
@@ -100,7 +100,9 @@ if __name__ == '__main__':
|
||||
# the process-executor.
|
||||
#
|
||||
# Setting PYTHONHOME launch them properly.
|
||||
os.environ['PYTHONHOME'] = sys.prefix
|
||||
from pgadmin.utils import IS_WIN
|
||||
if IS_WIN:
|
||||
os.environ['PYTHONHOME'] = sys.prefix
|
||||
|
||||
try:
|
||||
app.run(
|
||||
|
||||
Reference in New Issue
Block a user