File tree Expand file tree Collapse file tree 10 files changed +11
-11
lines changed Expand file tree Collapse file tree 10 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 17
17
from oracle .weblogic .deploy .util import WLSDeployArchiveIOException
18
18
from oracle .weblogic .deploy .util import WebLogicDeployToolingVersion
19
19
20
- sys .path .append ( os .path .dirname (os .path .realpath (sys .argv [0 ])))
20
+ sys .path .insert ( 0 , os .path .dirname (os .path .realpath (sys .argv [0 ])))
21
21
22
22
# imports from local packages start here
23
-
24
23
from wlsdeploy .aliases .aliases import Aliases
25
24
from wlsdeploy .aliases import model_constants
26
25
from wlsdeploy .aliases .model_constants import DEFAULT_WLS_DOMAIN_NAME
Original file line number Diff line number Diff line change 16
16
from oracle .weblogic .deploy .util import CLAException
17
17
from oracle .weblogic .deploy .util import WebLogicDeployToolingVersion
18
18
19
- sys .path .append ( os .path .dirname (os .path .realpath (sys .argv [0 ])))
19
+ sys .path .insert ( 0 , os .path .dirname (os .path .realpath (sys .argv [0 ])))
20
20
21
21
# imports from local packages start here
22
22
from wlsdeploy .aliases .aliases import Aliases
Original file line number Diff line number Diff line change 22
22
from oracle .weblogic .deploy .util import WebLogicDeployToolingVersion
23
23
from oracle .weblogic .deploy .validate import ValidateException
24
24
25
- sys .path .append ( os .path .dirname (os .path .realpath (sys .argv [0 ])))
25
+ sys .path .insert ( 0 , os .path .dirname (os .path .realpath (sys .argv [0 ])))
26
26
27
27
from wlsdeploy .aliases import model_constants
28
28
from wlsdeploy .aliases .aliases import Aliases
Original file line number Diff line number Diff line change 18
18
from oracle .weblogic .deploy .util import VariableException
19
19
from oracle .weblogic .deploy .util import WebLogicDeployToolingVersion
20
20
21
- sys .path . append ( os . path . dirname ( os . path . realpath ( sys . argv [ 0 ])))
21
+ # Jython tools don't require sys.path modification
22
22
23
23
# imports from local packages start here
24
24
from wlsdeploy .aliases .aliases import Aliases
Original file line number Diff line number Diff line change 11
11
from oracle .weblogic .deploy .util import CLAException
12
12
from oracle .weblogic .deploy .util import WebLogicDeployToolingVersion
13
13
14
- sys .path . append ( os . path . dirname ( os . path . realpath ( sys . argv [ 0 ])))
14
+ # Jython tools don't require sys.path modification
15
15
16
16
# imports from local packages start here
17
17
from wlsdeploy .aliases .aliases import Aliases
Original file line number Diff line number Diff line change 9
9
from oracle .weblogic .deploy .util import CLAException
10
10
from oracle .weblogic .deploy .util import WebLogicDeployToolingVersion
11
11
12
- sys .path . append ( os . path . dirname ( os . path . realpath ( sys . argv [ 0 ])))
12
+ # Jython tools don't require sys.path modification
13
13
14
14
from wlsdeploy .aliases .aliases import Aliases
15
15
from wlsdeploy .exception import exception_helper
Original file line number Diff line number Diff line change 27
27
from oracle .weblogic .deploy .util import WebLogicDeployToolingVersion
28
28
from oracle .weblogic .deploy .validate import ValidateException
29
29
30
+ # Jython tools don't require sys.path modification
31
+
30
32
from wlsdeploy .aliases .aliases import Aliases
31
33
from wlsdeploy .aliases .location_context import LocationContext
32
34
from wlsdeploy .aliases .model_constants import ADMIN_USERNAME
Original file line number Diff line number Diff line change 15
15
from oracle .weblogic .deploy .util import CLAException
16
16
from oracle .weblogic .deploy .util import WebLogicDeployToolingVersion
17
17
18
- sys .path .append ( os .path .dirname (os .path .realpath (sys .argv [0 ])))
18
+ sys .path .insert ( 0 , os .path .dirname (os .path .realpath (sys .argv [0 ])))
19
19
20
20
# imports from local packages start here
21
21
from wlsdeploy .aliases .aliases import Aliases
Original file line number Diff line number Diff line change 17
17
18
18
from oracle .weblogic .deploy .logging import SummaryHandler
19
19
20
- sys .path . append ( os . path . dirname ( os . path . realpath ( sys . argv [ 0 ])))
20
+ # Jython tools don't require sys.path modification
21
21
22
22
# imports from local packages start here
23
23
from wlsdeploy .aliases .wlst_modes import WlstModes
Original file line number Diff line number Diff line change 4
4
5
5
The entry point for the injectVariables tool.
6
6
"""
7
- import os
8
7
import sys
9
8
10
9
from java .io import File
15
14
from oracle .weblogic .deploy .util import WLSDeployArchiveIOException
16
15
from oracle .weblogic .deploy .util import WebLogicDeployToolingVersion
17
16
18
- sys .path . append ( os . path . dirname ( os . path . realpath ( sys . argv [ 0 ])))
17
+ # Jython tools don't require sys.path modification
19
18
20
19
import wlsdeploy .tool .util .variable_injector as variable_injector
21
20
from wlsdeploy .aliases .wlst_modes import WlstModes
You can’t perform that action at this time.
0 commit comments