mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Set PSQLRC and PSQL_HISTORY env vars to apt. user storage path in the server mode. Fixes #6691
This commit is contained in:
committed by
Akshay Joshi
parent
c64eb3507c
commit
fbc6c30b62
@@ -241,7 +241,7 @@ else:
|
||||
return os.path.realpath(os.path.expanduser('~/'))
|
||||
|
||||
|
||||
def get_complete_file_path(file):
|
||||
def get_complete_file_path(file, validate=True):
|
||||
"""
|
||||
Args:
|
||||
file: File returned by file manager
|
||||
@@ -266,7 +266,10 @@ def get_complete_file_path(file):
|
||||
file = file.replace('\\', '/')
|
||||
file = fs_short_path(file)
|
||||
|
||||
return file if os.path.isfile(file) else None
|
||||
if validate:
|
||||
return file if os.path.isfile(file) else None
|
||||
else:
|
||||
return file
|
||||
|
||||
|
||||
def does_utility_exist(file):
|
||||
|
||||
Reference in New Issue
Block a user