[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3626] contrib/py/scripts/addons/ oscurart_tools.py: Fix System check in Resym

Campbell Barton ideasman42 at gmail.com
Mon Jul 16 00:43:31 CEST 2012


best just use os.sep

On Sun, Jul 15, 2012 at 4:45 PM, Eugenio Pignataro <info at oscurart.com.ar> wrote:
> Revision: 3626
>           http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3626
> Author:   oscurart
> Date:     2012-07-15 14:45:08 +0000 (Sun, 15 Jul 2012)
> Log Message:
> -----------
> Fix System check in Resym
>
> Modified Paths:
> --------------
>     contrib/py/scripts/addons/oscurart_tools.py
>
> Modified: contrib/py/scripts/addons/oscurart_tools.py
> ===================================================================
> --- contrib/py/scripts/addons/oscurart_tools.py 2012-07-15 14:23:58 UTC (rev 3625)
> +++ contrib/py/scripts/addons/oscurart_tools.py 2012-07-15 14:45:08 UTC (rev 3626)
> @@ -2529,8 +2529,10 @@
>
>      SYMAP = {VERTL : VERTR for VERTR in R for VERTL in L if R[VERTR] == L[VERTL] }
>
> -    SYSBAR = "/"
> -    SYSBAR = "\\" if sys.platform.startswith("w") else print ("UNIX") # REVISO SISTEMA
> +    if sys.platform.startswith("w"):
> +        SYSBAR = "\\"
> +    else:
> +         SYSBAR = "/"
>
>      FILEPATH=bpy.data.filepath
>      ACTIVEFOLDER=FILEPATH.rpartition(SYSBAR)[0]
> @@ -2547,8 +2549,10 @@
>
>      BM = bmesh.from_edit_mesh(bpy.context.object.data)
>
> -    SYSBAR = "/"
> -    SYSBAR = "\\" if sys.platform.startswith("w") else print ("UNIX") # REVISO SISTEMA
> +    if sys.platform.startswith("w"):
> +        SYSBAR = "\\"
> +    else:
> +         SYSBAR = "/"
>
>      FILEPATH=bpy.data.filepath
>      ACTIVEFOLDER=FILEPATH.rpartition(SYSBAR)[0]
> @@ -2687,4 +2691,3 @@
>
>  if __name__ == "__main__":
>      register()
> -
>
> _______________________________________________
> Bf-extensions-cvs mailing list
> Bf-extensions-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-extensions-cvs



-- 
- Campbell


More information about the Bf-extensions-cvs mailing list