aboutsummaryrefslogtreecommitdiff
path: root/tool/modules/path.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-19 13:39:41 +0800
committercrupest <crupest@outlook.com>2022-11-19 13:39:41 +0800
commit2dc194f86144ebd0681c4858e5ebeb2ec205e7a1 (patch)
tree9bbf050e71afea2705383f9b6e4aafa5cbef901f /tool/modules/path.py
parent5f2a7500cfd0f42c9b88f4779c6ef9755cc741ef (diff)
downloadcrupest-2dc194f86144ebd0681c4858e5ebeb2ec205e7a1.tar.gz
crupest-2dc194f86144ebd0681c4858e5ebeb2ec205e7a1.tar.bz2
crupest-2dc194f86144ebd0681c4858e5ebeb2ec205e7a1.zip
Fix nginx docker and certbot command.
Diffstat (limited to 'tool/modules/path.py')
-rw-r--r--tool/modules/path.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/modules/path.py b/tool/modules/path.py
index 94adc27..24df27a 100644
--- a/tool/modules/path.py
+++ b/tool/modules/path.py
@@ -2,6 +2,7 @@ import os.path
script_dir = os.path.relpath(os.path.dirname(__file__))
project_dir = os.path.normpath(os.path.join(script_dir, "../../"))
+project_abs_path = os.path.abspath(project_dir)
template_dir = os.path.join(project_dir, "template")
nginx_template_dir = os.path.join(template_dir, "nginx")
data_dir = os.path.join(project_dir, "data")
@@ -9,5 +10,5 @@ tool_dir = os.path.join(project_dir, "tool")
config_file_path = os.path.join(data_dir, "config")
nginx_config_dir = os.path.join(project_dir, "nginx-config")
-__all__ = ["script_dir", "project_dir", "template_dir",
+__all__ = ["script_dir", "project_dir", "project_abs_path", "template_dir",
"nginx_template_dir", "data_dir", "config_file_path", "tool_dir", "nginx_config_dir"]