Python’da benim gibi yeniyseniz kaydettiğiniz dosyayı import etmeye çalıştığınızda dosya bulunamadı gibi bir hatayla karşılaşabilirsiniz, bunun sebebi python un path’ine dosyanızın bulunduğu klasörü eklememiş olmanızdır.

Örnek olarak “/home/fakturk/Python Examples” adresini python pathine eklemek için python IDE nize (Ubuntu üzerinde çalışıyorsanız muhtemelen IDLE) aşağıdaki satırları yazmanız yeterli

import sys
sys.path.append (”/home/fakturk/Python Examples”)

Kaynak : http://www.johnny-lin.com/cdat_tips/tips_pylang/path.html

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>