000000000000000
ذكر عدد المساهمات : 224 نقاط : 10377 تاريخ الميلاد : 04/01/1988 العمر : 36 الموقع : الخليل - نابلس العمل/الترفيه : برمجة الويب وطالب في هندسة الكمبيوتر المزاج : ممتاز
| موضوع: python code to know current file name and path and directory الأحد أغسطس 12, 2012 12:47 pm | |
| import inspect, os
print inspect.getfile(inspect.currentframe()) # script filename
print os.path.dirname(inspect.getfile(inspect.currentframe())) # script directory | |
|