autodistill / autodistill-seggpt

SegGPT module for use with Autodistill
https://docs.autodistill.com
5 stars 1 forks source link

`seggpt.check_dependencies` permanently changes working directory #1

Closed ethanmusser closed 1 year ago

ethanmusser commented 1 year ago

This line in seggpt.check_dependencies changes the working directory of the Python process, but never reverts to the original working directory once the dependency check is complete. This lack of revert causes paths to be incorrectly resolved in programs that import seggpt.

https://github.com/autodistill/autodistill-seggpt/blob/ad60a7a221ec68ddfed43df2fbf06408767c4fd8/autodistill_seggpt/seggpt.py#L16

andrew-healey commented 1 year ago

You're right, thanks for reporting this! This issue is now fixed.