python - py.magic in py.test 2.0.2 -
py.test 2.0.2 में, हम
के स्थान पर क्या उपयोग करते हैं .magic.autopath ()। Dirpath () क्योंकि 'py.magic' को py-1.0.2 के बाद हटा दिया गया है
os.path.abspath (os.path.dirname ( फ़ाइल )) // मूल निर्देशिका देता है मौजूदा फाइल का
Comments
Post a Comment