We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf796ab commit 8ae2ba9Copy full SHA for 8ae2ba9
1 file changed
versionwarning/signals.py
@@ -5,6 +5,7 @@
5
6
7
STATIC_PATH = os.path.join(os.path.dirname(__file__), '_static')
8
+JSON_DATA_FILENAME = 'versionwarning-data.json'
9
10
11
def generate_versionwarning_data_json(app, **kwargs):
@@ -64,7 +65,7 @@ def generate_versionwarning_data_json(app, **kwargs):
64
65
if not os.path.exists(data_path):
66
os.mkdir(data_path)
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:
69
f.write(data)
70
71
# Add the path where ``versionwarning-data.json`` file and
0 commit comments