<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">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 class=""><br class=""></div><div class="">--Eric<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 19, 2020, at 9:39 AM, Daniel Esteban Palma Igor <<a href="mailto:daniel.palma.i@ug.uchile.cl" class="">daniel.palma.i@ug.uchile.cl</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">Great, thanks</div><br class=""><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" class="">pett@cgl.ucsf.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Daniel,<br class="">
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 class="">
<br class="">
--Eric<br class="">
<br class="">
Eric Pettersen<br class="">
UCSF Computer Graphics Lab<br class="">
<br class="">
> On Nov 19, 2020, at 8:08 AM, Daniel Esteban Palma Igor <<a href="mailto:daniel.palma.i@ug.uchile.cl" target="_blank" rel="noreferrer" class="">daniel.palma.i@ug.uchile.cl</a>> wrote:<br class="">
> <br class="">
> Hi,<br class="">
> 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 class="">
> Regards,<br class="">
> Daniel Palma Igor<br class="">
> _______________________________________________<br class="">
> ChimeraX-users mailing list<br class="">
> <a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank" rel="noreferrer" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">
> Manage subscription:<br class="">
> <a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" rel="noreferrer noreferrer" target="_blank" class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class="">
<br class="">
</blockquote></div>
_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></div></blockquote></div><br class=""></div></body></html>