from glob import glob
for src_path in glob('src/*'):
    os.symlink(os.path.relpath(src_path, 'dst/'), os.path.join('dst', os.
        path.basename(src_path)))
Creating a relative symlink in python without using os.chdir()