I have this module named say a.py in the directory /home/ssridhar/Python. This module contains a function say
def number_haloes(n):
halo_param = var2['halo_id'][z1]
print len(halo_param)
I have another module say b.py in the directory /home/ssridhar/Python/mean.
I want to use the def number_haloes from a.py in b.py
I tried import a but it is showing ImportError: No module named a
How do I do this task?