python - (os.path.dirname(__file__)) not working in FreeBSD -


i want set path images dir..in django project...it working fine when run script on freebsd not working...

import os   imagesdirpath = (os.path.dirname(__file__)) + "/couponrestapiapp/stores/images/" print imagesdirpath  output: /home/vaibhav/trac/coupon-rest-api/couponrestapi/couponrestapiapp/stores/images/ 

above working on system when tried on freebsd get:

/couponrestapiapp/stores/images/ 

but should

/home/vaibhav/coupon-rest-api/couponrestapi/couponrestapiapp/stores/images/ 

can tell me wrong...


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -