Skip to content

Commit 8ae2ba9

Browse files
committed
Use a constant for the filename
1 parent cf796ab commit 8ae2ba9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

versionwarning/signals.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66

77
STATIC_PATH = os.path.join(os.path.dirname(__file__), '_static')
8+
JSON_DATA_FILENAME = 'versionwarning-data.json'
89

910

1011
def generate_versionwarning_data_json(app, **kwargs):
@@ -64,7 +65,7 @@ def generate_versionwarning_data_json(app, **kwargs):
6465
if not os.path.exists(data_path):
6566
os.mkdir(data_path)
6667

67-
with open(os.path.join(data_path, 'versionwarning-data.json'), 'w') as f:
68+
with open(os.path.join(data_path, JSON_DATA_FILENAME), 'w') as f:
6869
f.write(data)
6970

7071
# Add the path where ``versionwarning-data.json`` file and

0 commit comments

Comments
 (0)