Skip to content

Commit

Permalink
Merge pull request #33 from linuxrider/fix-temporary-filewatcher-with…
Browse files Browse the repository at this point in the history
…-windows

fix temporary file watcher path handling in windows
  • Loading branch information
linuxrider authored Jul 6, 2024
2 parents 75218de + 35baf9c commit 4d73573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autotag_metadata/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ def toggle_watch_temporary_file(self):
if self.btnUseTemporaryFile.isChecked():
if self.temporary_file:
# create new instance of watcher potential
splitted = self.temporary_file.split("/")
path = "/".join(splitted[:-1])
splitted = os.path.split(self.temporary_file)
path = os.path.join(*splitted[:-1])
file = splitted[-1]
self.temporary_file_monitor = FileMonitor(patterns=[file])
self.thread_temporary_file = QtCore.QThread(self)
Expand Down

0 comments on commit 4d73573

Please sign in to comment.