Python 3 porting

This commit is contained in:
Gilles DAVID 2017-05-24 10:06:13 +02:00
parent 4e712a0db0
commit d6d9a9dab6
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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