<div dir="ltr">Oh I was also thinking to do something like that, nice to know about the LimitationError.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 20 Nov 2020 at 14:19, Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu">pett@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">BTW, an alternative approach is to not use the platform attribute and instead in the code that implements the command check sys.platform and if it's Windows then raise chimerax.core.errors.LimitationError with a message that the command doesn't work / isn't available on Windows. LimitationError will present a dialog to the user with your message and will not produce a traceback / bug-report dialog.<div><br></div><div>--Eric<br><div><br><blockquote type="cite"><div>On Nov 19, 2020, at 9:39 AM, Daniel Esteban Palma Igor <<a href="mailto:daniel.palma.i@ug.uchile.cl" target="_blank">daniel.palma.i@ug.uchile.cl</a>> wrote:</div><br><div><div dir="auto">Great, thanks</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 19, 2020, 14:22 Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" target="_blank">pett@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Daniel,<br>
Right now you would have to use two ChimeraXClassifiers. As of tomorrow's daily build, you will be able to use a comma-separated list of platform names in the platform attribute.<br>
<br>
--Eric<br>
<br>
Eric Pettersen<br>
UCSF Computer Graphics Lab<br>
<br>
> On Nov 19, 2020, at 8:08 AM, Daniel Esteban Palma Igor <<a href="mailto:daniel.palma.i@ug.uchile.cl" rel="noreferrer" target="_blank">daniel.palma.i@ug.uchile.cl</a>> wrote:<br>
> <br>
> Hi,<br>
> I have a command that will work in mac and linux but not in windows, Should I create a separate ChimeraXClassifier for linux and mac with the corresponding platform attribute or there is a way to create only one ChimeraXClassifier for both?<br>
> Regards,<br>
> Daniel Palma Igor<br>
> _______________________________________________<br>
> ChimeraX-users mailing list<br>
> <a href="mailto:ChimeraX-users@cgl.ucsf.edu" rel="noreferrer" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>
> Manage subscription:<br>
> <a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" rel="noreferrer noreferrer" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br>
<br>
</blockquote></div>
_______________________________________________<br>ChimeraX-users mailing list<br><a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>Manage subscription:<br><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br></div></blockquote></div><br></div></div></blockquote></div>