Each module has a __file__ variable that can be used for it. The answer is pretty simple. import os path = os.path.abspath(__file__) dir_path = ...
確定! 回上一頁