#!/usr/bin/env python # _*_ coding:utf-8 _*_ ''' * @author: Lightwing Ng * email: [email protected] * created on Mar 15, 2018, 3:26 AM * Software: PyCharm * Project Name: FTP2-master ''' import os, sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_DIR) from core import main if __name__ == '__main__': main.ArvgHandler()
import os, sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_DIR) from core import main if __name__ == '__main__': main.ArvgHandler(sys.argv)
#__author__:"jcm" import os, sys BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_PATH) from core import main if __name__ == "__main__": try: main.ArvgHandler(filename=os.path.basename(__file__)) except KeyboardInterrupt as e: print("...ftp服务 已停止....")
#_*_coding:utf-8_*_ import os import sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_DIR) # 向我们的索引库目录中加入BASE_DIR from core import main if __name__ == '__main__': server = main.ArvgHandler() server.start()