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:
Murtuza Zabuawala
2017-03-09 09:54:55 +00:00
committed by Dave Page
parent 533833cb02
commit bc63652811
5 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ class BatchProcess(object):
executor = file_quote(os.path.join(
os.path.dirname(u(__file__)), u'process_executor.py'
))
paths = sys.path[:]
paths = os.environ['PATH'].split(os.pathsep)
interpreter = None
if os.name == 'nt':