mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-24 06:30:34 +05:00
Python 3 porting
This commit is contained in:
parent
4e712a0db0
commit
d6d9a9dab6
@ -1,5 +1,4 @@
|
|||||||
#! /usr/bin/env python
|
#! /usr/bin/env python3
|
||||||
# -*- coding: iso-8859-1 -*-
|
|
||||||
# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
|
# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
@ -58,7 +57,7 @@ def set_env( args ):
|
|||||||
plugin_list.append("AdvancedGEOM")
|
plugin_list.append("AdvancedGEOM")
|
||||||
|
|
||||||
# find additional plugins
|
# find additional plugins
|
||||||
for env_var in list(os.environ.keys()):
|
for env_var in os.environ:
|
||||||
value = os.environ[env_var]
|
value = os.environ[env_var]
|
||||||
if env_var[-9:] == "_ROOT_DIR" and value:
|
if env_var[-9:] == "_ROOT_DIR" and value:
|
||||||
plugin_root = value
|
plugin_root = value
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
|
# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# 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
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
|
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import unittest, sys, os
|
import unittest, sys, os
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user