Terminalde dosyayı open komutu ile açmayı denediniz mi? Önce open komutunun 
çalışıp çalışmadığından emin olmalı. Sonrasında da HedefDosya değişkenin doğru 
yolu gösterdiğinden...


On Nov 24, 2011, at 3:51 PM, Mucibirahman İLBUĞA wrote:

> 24-11-2011 15:46 tarihinde, Murat Çorlu yazdı:
>> Tam platform bağımsız değil ama, şöyle bir yöntem varmış:
>> 
>> Linux / Mac OSX:
>> os.system("open " + filename)
>> 
>> Win:
>> os.system("start " + filename)
>> 
>> Kaynak: http://stackoverflow.com/q/434612/198062
> Selam,
> Enteresandır! Pardus'da çalışmadı! Win'de henüz deneyemedim...
> 
> 
> if os.name == "posix":
>             os.system("open " + HedefDosya)
> elif os.name == "nt":
>             os.system("start " + HedefDosya)
> 
> 
> 
> -- 
> Kolay gelsin,
> Mucip:)
> 
> _______________________________________________
> Linux-programlama mailing list
> [email protected]
> https://liste.linux.org.tr/mailman/listinfo/linux-programlama
> Liste kurallari: http://liste.linux.org.tr/kurallar.php

_______________________________________________
Linux-programlama mailing list
[email protected]
https://liste.linux.org.tr/mailman/listinfo/linux-programlama
Liste kurallari: http://liste.linux.org.tr/kurallar.php

Cevap