diff --git a/src/quotes/gnc-prices.in b/src/quotes/gnc-prices.in index 4181caccb0..4b72e5489b 100644 --- a/src/quotes/gnc-prices.in +++ b/src/quotes/gnc-prices.in @@ -132,7 +132,7 @@ die "Usage: $0 " if $#ARGV < 0; # open the file, read all of the accounts print "Opening file $ARGV[0]\n"; $sess = gnucash::xaccMallocSession (); -$grp = gnucash::xaccSessionBeginFile ($sess,$ARGV[0]); +$grp = gnucash::xaccSessionBegin ($sess, "file:".$ARGV[0]); die "failed to read file $ARGV[0], maybe its locked? " if (! $grp);