Revision: 1666
Author: sebastien.lelong
Date: Sat Feb 13 11:19:49 2010
Log: apply correct splitting on JALLIB_REPOS paths, by also considering *nix platforms, for a better world. In general...
http://code.google.com/p/jallib/source/detail?r=1666

Modified:
 /trunk/tools/jallib.py

=======================================
--- /trunk/tools/jallib.py      Sat Feb 13 07:45:10 2010
+++ /trunk/tools/jallib.py      Sat Feb 13 11:19:49 2010
@@ -190,7 +190,12 @@
     # No root specified ? Try env var, else defaut to cwd
     if not dirs:
         try:
-            gdirs = os.environ['JALLIB_REPOS'].split(";")
+            # honor way to define to different paths whether it's on *nix
+            # (using ":") or windows (using ";" like jalv2 compiler)
+            if sys.platform.lower().startswith("win"):
+                gdirs = os.environ['JALLIB_REPOS'].split(";")
+            else:
+                gdirs = os.environ['JALLIB_REPOS'].split(":")
         except KeyError:
             # no such env var, takes param from commandline, and honor
             # jalv2 compiler separator
@@ -786,8 +791,8 @@
             try:
from picshell.console.picshell_unittest import picshell_unittest
                 oracle = picshell_unittest(jal,asm,hex)
-            except ImportError:
- print >> sys.stderr, "Can't find PICShell libraries. Install PICShell and adjust PYTHONPATH"
+            except ImportError,e:
+ print >> sys.stderr, "Can't find PICShell libraries. Install PICShell and adjust PYTHONPATH\n%s" % e
                 sys.exit(255)
                 oracle['failure'] = 1

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to