Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
word_cloud_est
Commits
902f8918
Commit
902f8918
authored
Dec 24, 2014
by
Andreas Mueller
Browse files
Merge pull request #38 from laserson/issue-12
FONT_PATH env var is now respected
parents
2f0c4a2d
a47af4ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
wordcloud/wordcloud.py
View file @
902f8918
...
...
@@ -18,7 +18,7 @@ from .query_integral_image import query_integral_image
item1
=
itemgetter
(
1
)
FONT_PATH
=
"/usr/share/fonts/truetype/droid/DroidSansMono.ttf"
FONT_PATH
=
os
.
environ
.
get
(
"FONT_PATH"
,
"/usr/share/fonts/truetype/droid/DroidSansMono.ttf"
)
STOPWORDS
=
set
([
x
.
strip
()
for
x
in
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'stopwords'
)).
read
().
split
(
'
\n
'
)])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment