summaryrefslogtreecommitdiff
path: root/imdb-lookup/imdblookup.py
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-10-14 22:01:08 +0200
committerYves Fischer <yvesf-git@xapek.org>2014-10-14 22:01:08 +0200
commitc97f358c1871f0c7b4332e810badd77b374079ec (patch)
tree86f1d6de4492fec926f9af0408c1ee716c3a4ff9 /imdb-lookup/imdblookup.py
parenteabba9daeaf67a77bdeeddcca36c6d8af22fd630 (diff)
downloadscripts-c97f358c1871f0c7b4332e810badd77b374079ec.tar.gz
scripts-c97f358c1871f0c7b4332e810badd77b374079ec.zip
stupid fix
Diffstat (limited to 'imdb-lookup/imdblookup.py')
-rw-r--r--imdb-lookup/imdblookup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/imdb-lookup/imdblookup.py b/imdb-lookup/imdblookup.py
index ce88183..9b30dcd 100644
--- a/imdb-lookup/imdblookup.py
+++ b/imdb-lookup/imdblookup.py
@@ -32,7 +32,7 @@ def read_key():
if os.path.exists(os.path.join(cfg_home, u"tmdbkey")):
return open(os.path.join(cfg_home, u"tmdbkey"), "r").read().strip()
if os.path.exists(os.path.join(os.path.expanduser(u"~"), ".tmdbkey")):
- return open(os.path.exists(os.path.join(os.path.expanduser(u"~"), ".tmdbkey"))).read().strip()
+ return open(os.path.join(os.path.expanduser(u"~"), ".tmdbkey")).read().strip()
raise Exception(u"No TheMovieDB Key defined. Set Env. var. TMDB_KEY or .tmpdbkey file")
def read_filename(filename):