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
commit031a1daa5411a6e7da9c0cf53be4e0551d189be6 (patch)
tree9bbf050e71afea2705383f9b6e4aafa5cbef901f /tool/modules/path.py
parent3a56dce5b7b2d29e053b2e0074b0864c2d778eee (diff)
downloadcrupest-031a1daa5411a6e7da9c0cf53be4e0551d189be6.tar.gz
crupest-031a1daa5411a6e7da9c0cf53be4e0551d189be6.tar.bz2
crupest-031a1daa5411a6e7da9c0cf53be4e0551d189be6.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"]