Closes #21: Not working on windows platform with cmd.
Modifications made:
. can't be used to traverse the Windows file-system, so I implemented the standard OS-agnostic technique of accessing the file(s) in Python, using the os module and getting the current working directory using os.getcwd(). That indeed is the recommended way of accessing files in the current directory.
f'{os.getcwd()}/prog' # Works in all environments
I modified the patterns being used by watchdog to ensure the compiled binary isn't being watched. MSYS2 also uses .exe for compiled binaries, so we must ignore *.exe for Codemon to work successfully in any Windows environment.
Closes #21: Not working on windows platform with cmd.
Modifications made:
.
can't be used to traverse the Windows file-system, so I implemented the standard OS-agnostic technique of accessing the file(s) in Python, using theos
module and getting the current working directory usingos.getcwd()
. That indeed is the recommended way of accessing files in the current directory.watchdog
to ensure the compiled binary isn't being watched. MSYS2 also uses.exe
for compiled binaries, so we must ignore*.exe
for Codemon to work successfully in any Windows environment.