From 3eda89dba69f73d28e647554f24d909152348a17 Mon Sep 17 00:00:00 2001 From: Artyom Vancyan Date: Sun, 12 Mar 2023 20:15:29 +0400 Subject: [PATCH] Fix the action fail --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 635ae6e..4c9eb56 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +from os.path import dirname, join from urllib.request import urlretrieve from setuptools import setup @@ -5,6 +6,6 @@ if __name__ == "__main__": urlretrieve( "https://cdnjs.cloudflare.com/ajax/libs/mermaid/9.4.3/mermaid.js", - "src/django_mermaid/static/mermaid.js", + join(dirname(__file__), "src", "django_mermaid", "static", "mermaid.js") ) setup()