Skip to content

Commit 1dd1e80

Browse files
committed
Resolve file path
1 parent 1cdc5cf commit 1dd1e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Analyzer{
1818

1919
function __construct($lexicon_file="Lexicons/vader_sentiment_lexicon.txt"){
2020
//Not sure about this as it forces lexicon file to be in the same directory as executing script
21-
$this->lexicon_file = realpath(dirname(__FILE__)) . "/" . $lexicon_file;
21+
$this->lexicon_file = __DIR__ . DIRECTORY_SEPARATOR . $lexicon_file;
2222
$this->lexicon = $this->make_lex_dict();
2323
}
2424

0 commit comments

Comments
 (0)