summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-12-03 19:28:13 +0100
committerhut <hut@lepus.uberspace.de>2014-12-03 19:28:13 +0100
commit1f144a8a067eb23267f2f7eb5be0a725b97e8a68 (patch)
tree16540fa1f2dbea914ede5e85b6239c3586d5ad88
parent45a43d9cdaf0fc6bb85c3b188743ac0b3617b2a9 (diff)
downloadranger-1f144a8a067eb23267f2f7eb5be0a725b97e8a68.tar.gz
ext.papermanager: move pagerinfo file name into variable
-rw-r--r--ranger/ext/papermanager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/ext/papermanager.py b/ranger/ext/papermanager.py
index 4e53bcc7..69332b21 100644
--- a/ranger/ext/papermanager.py
+++ b/ranger/ext/papermanager.py
@@ -14,6 +14,8 @@ The columns are:
 5. URL
 """
 
+PAGERINFO_FILE_NAME = ".pagerinfo"
+
 import csv
 from os.path import join, dirname, exists, basename
 
@@ -34,7 +36,7 @@ class PaperManager(object):
         except KeyError:
             result = OpenStruct(filename=filename, title=None, year=None,
                     authors=None, url=None)
-            metafile = join(dirname(filename), ".paperinfo")
+            metafile = join(dirname(filename), PAGERINFO_FILE_NAME)
 
             # get entries of the metadata file
             if metafile in self.metafile_cache: