-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows - Unable to delete a lab in a subdirectory #93
Comments
There's already a PR that fixes this. It's applied in the |
I pulled the changes in, but I have no real way to test without Windows. Please let me know. Thank you!! |
So, an update with 0.2.2: It works. However, it only works when the path is correctly specified. (e.g. Steps to Reproduce:As a result of this, attempting to use a direct output of the API results in:
|
I see. I should have a Windows set up here pretty soon to see if I can replicate the issue. |
Summary
I am unable to remove a nested lab via this library.
Issue Type
Bug Report
Python Version
3.8.10
OS / Environment
Windows 10
Steps to Reproduce
On a Windows system, attempt to delete a lab in a subdirectory.
Expected Results
Lab is deleted successfully.
Actual Results
Comments
This is due to the Path import being ambiguous, and as a result will use the system Pathlib, which in my case is WindowsPath.
Discovered Solution
By replacing the import with PurePosixPath and removing the .resolve(), I am able to utilize the SDK. Perhaps introduce a check for the OS the user is on and substitute these function calls?
evengsdk/src/evengsdk/api.py
Line 5 in 4d8cf33
evengsdk/src/evengsdk/api.py
Line 152 in 4d8cf33
The text was updated successfully, but these errors were encountered: