Skip to content

Commit

Permalink
Data file can be specified by MOJOWKA_DATAFILE environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shoorick committed Jul 14, 2010
1 parent 34bf711 commit 85249d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mojowka
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ use Text::Textile;
use DBI;


my $dbfile = 'data.sqlite';
my $dbfile
= $ENV{'MOJOWKA_DATAFILE'}
|| 'data.sqlite';

our $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile", '', '');

our $txt = new Text::Textile;
Expand Down

0 comments on commit 85249d9

Please sign in to comment.