dpnishant / appmon

Documentation:
http://dpnishant.github.io/appmon
Apache License 2.0
1.56k stars 276 forks source link

adding windows compatibility #69

Closed ghost closed 6 years ago

ghost commented 6 years ago

Based on the work from #55 I created a pull request that addresses several Windows compatibility issues in the code and dpnishant's concern about regression failures in *nix platforms. It does the following things: 1) Uses the Python platform module to determine the OS and call time.strftime appropriately. On non-windows systems it uses the old call. 2) Changes all hardcoded "/"s in paths to use either os.sep, or os.path.join 3) Uses the Python tempfile module to replace the hardcoded reference to "/tmp"

I tested this on Windows 10 and MacOS 10.11.6 successfully, using the following launch parameters: -a iGoat -p ios -s scripts/iOS --spawn 1

dpnishant commented 6 years ago

@cutler-scott-ey Thanks for the PR. Appreciate it.