Salome HOME
projects
/
tools
/
yacsgen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add COPYING license file
[tools/yacsgen.git]
/
Examples
/
pydoc1
/
components.py
diff --git
a/Examples/pydoc1/components.py
b/Examples/pydoc1/components.py
index 72e88d6b67a9e650cf694db9fb52b4dc0b0660b2..281e59dc18d92f90c02ff69c923035a20c5d72f7 100644
(file)
--- a/
Examples/pydoc1/components.py
+++ b/
Examples/pydoc1/components.py
@@
-1,4
+1,4
@@
-# Copyright (C) 2009-20
14 EDF R&D
+# Copyright (C) 2009-20
24 EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-20,7
+20,7
@@
import os
#import context from ..
import os
#import context from ..
-exec
file("../context.py"
)
+exec
(compile(open("../context.py").read(), "../context.py", 'exec')
)
from module_generator import *
from module_generator import *
@@
-49,6
+49,7
@@
g.generate()
g.configure()
g.make()
g.install()
g.configure()
g.make()
g.install()
-g.make_appli("appli", restrict=["KERNEL"], altmodules={"GUI":GUI_ROOT_DIR, "YACS":YACS_ROOT_DIR})
+g.make_appli("appli", restrict=["KERNEL"], altmodules={"GUI":GUI_ROOT_DIR,
+ "YACS":YACS_ROOT_DIR}, sys_modules=SYS_MODULES)