在django tutorials中,这个家伙解释说,用下面的代码编辑setup.py:
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))为什么这里需要normpath?只使用dirname还不够吗?:
os.chdir(os.path.dirname(__file__))发布于 2015-02-13 17:26:14
https://stackoverflow.com/questions/28496109
复制相似问题