Permalink
Browse files

bugfix: prevent scary psql warning "couldn ot change directory to..."

  • Loading branch information...
1 parent 4e30b88 commit 322bed22882b1d179393c2471122665b7f2200b7 @lirazsiri lirazsiri committed Oct 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pgsql.py
View
@@ -73,7 +73,7 @@ def restoredb(dbdump, dbname, tlimits=[]):
for (table, sign) in tlimits:
if sign:
command += " --table=" + table
- command += " | " + su("psql")
+ command += " | " + su("cd $HOME; psql")
system(command)
finally:

0 comments on commit 322bed2

Please sign in to comment.