Update use_dock.py

automatically get paths