From: Gilles DAVID Date: Wed, 24 May 2017 08:06:13 +0000 (+0200) Subject: Python 3 porting X-Git-Tag: V9_0_0~4^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6d9a9dab6bcd800ef9213509824f5bf52248daf;p=modules%2Fgeom.git Python 3 porting --- diff --git a/bin/geom_setenv.py b/bin/geom_setenv.py index 7cc471620..45a90d794 100644 --- a/bin/geom_setenv.py +++ b/bin/geom_setenv.py @@ -1,5 +1,4 @@ -#! /usr/bin/env python -# -*- coding: iso-8859-1 -*- +#! /usr/bin/env python3 # Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or @@ -58,7 +57,7 @@ def set_env( args ): plugin_list.append("AdvancedGEOM") # find additional plugins - for env_var in list(os.environ.keys()): + for env_var in os.environ: value = os.environ[env_var] if env_var[-9:] == "_ROOT_DIR" and value: plugin_root = value diff --git a/doc/salome/examples/testme.py b/doc/salome/examples/testme.py index 6e3903fbc..342c496fe 100755 --- a/doc/salome/examples/testme.py +++ b/doc/salome/examples/testme.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or @@ -17,7 +18,6 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -#!/usr/bin/env python import unittest, sys, os