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:
2
scripts/migrate_idp_certificates.py
Normal file → Executable file
2
scripts/migrate_idp_certificates.py
Normal file → Executable 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)
|
||||
|
Reference in New Issue
Block a user