Skip to content
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

Update process detection logic to work on OSX #142

Merged
merged 4 commits into from
Apr 22, 2021

Conversation

BasilHorowt
Copy link
Collaborator

the arguments passed to this function looked like this on OSX:

['/Library/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python', '/Users/chia/chia-blockchain/venv/bin/chia', 'plots', 'create', '-k', '32', '-r', '2', '-u', '128', '-b', '4608', '-t', '/Volumes/plotting2tb', '-d', '/Volumes/16tb']

The first argument did not contain a lowercase 'python', so we can lowercase the string before comparison to make the check work more generally.

the arguments passed to this function looked like this on OSX:

`['/Library/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python', '/Users/chia/chia-blockchain/venv/bin/chia', 'plots', 'create', '-k', '32', '-r', '2', '-u', '128', '-b', '4608', '-t', '/Volumes/plotting2tb', '-d', '/Volumes/16tb']`

The first argument did not contain a lowercase 'python', so we can lowercase the string before comparison to make the check work more generally.
@BasilHorowt
Copy link
Collaborator Author

Adjusts the same logic for difference reasons as https://github.com/ericaltendorf/plotman/pull/140/files so one of these will need to be resolved

Copy link
Collaborator

@altendky altendky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BasilHorowt, it's good to have a few people helping us improve our macOS support. Thanks!

@altendky altendky changed the base branch from main to development April 22, 2021 01:29
@altendky
Copy link
Collaborator

Just a little paperwork here... just a sec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants