[Emc-users] gladevcp startup, import errors due to 'rebranding'

2012-01-23 Thread Michael Haberler
ok, for those who have gladevcp Python handlers which import emc and currently 
fail due to the rebranding stampede in progress - the fastest fix is:

search for 

import emc

replace by:

try:
   import emc
except ImportError:
   import linuxcnc as emc

this works for pre-rebrand and current module naming

-mah
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] gladevcp startup, import errors due to 'rebranding'

2012-01-23 Thread Spiderdab
Il giorno lun, 23/01/2012 alle 12.54 +0100, Michael Haberler ha scritto:
 ok, for those who have gladevcp Python handlers which import emc and 
 currently fail due to the rebranding stampede in progress - the fastest fix 
 is:
 
 search for 
 
 import emc
 
 replace by:
 
 try:
import emc
 except ImportError:
import linuxcnc as emc
 
 this works for pre-rebrand and current module naming
 
 -mah
Thank you Michael, in this passage moment, this should be the best
solution.


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users