Commit 3cae6d22 authored by Patrick's avatar Patrick

Display python path on start up

parent 9f1ddd22
# -*- coding: utf-8 -*-
import sys
try:
import configparser
except:
......@@ -34,6 +36,8 @@ def get_allowed_mail_extension():
return allowed_mail_extension
# os.path.realpath resolves symlinks and os.path.abspath doesn't.
print("Python path is :")
print(sys.path)
PROJECT_DIR = os.path.realpath(os.path.dirname(__file__))
PROJECT_PATH = os.path.split(PROJECT_DIR)[0]
os.sys.path.insert(0, PROJECT_PATH)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment