1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

fix migrate_idp_certificates.py (#5930)

This commit is contained in:
WJH
2024-01-30 16:04:07 +08:00
committed by GitHub
parent ba5c57eba8
commit c39ede45b9

2
scripts/migrate_idp_certificates.py Normal file → Executable file
View File

@@ -5,7 +5,7 @@ import sys
import pymysql
pymysql.install_as_MySQLdb()
install_path = os.path.dirname(os.path.abspath(__file__))
install_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
top_dir = os.path.dirname(install_path)
central_config_dir = os.path.join(top_dir, 'conf')
sys.path.insert(0, central_config_dir)