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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -