Skip to content

Commit 36d6359

Browse files
committed
fix: use absolute imports
1 parent 6d5db62 commit 36d6359

8 files changed

Lines changed: 281 additions & 189 deletions

File tree

Pilot/__init__.py

Whitespace-only changes.

Pilot/dirac-pilot.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,13 @@
2424
import time
2525
from io import StringIO
2626

27-
try:
28-
from Pilot.pilotTools import (
29-
Logger,
30-
PilotParams,
31-
RemoteLogger,
32-
getCommand,
33-
pythonPathCheck,
34-
)
35-
except ModuleNotFoundError:
36-
from pilotTools import (
37-
Logger,
38-
PilotParams,
39-
RemoteLogger,
40-
getCommand,
41-
pythonPathCheck,
42-
)
27+
from pilotTools import (
28+
Logger,
29+
PilotParams,
30+
RemoteLogger,
31+
getCommand,
32+
pythonPathCheck,
33+
)
4334

4435
############################
4536

Pilot/pilotCommands.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,13 @@ def __init__(self, pilotParams):
3030
from http.client import HTTPSConnection
3131
from shlex import quote
3232

33-
try:
34-
from Pilot.pilotTools import (
35-
CommandBase,
36-
getSubmitterInfo,
37-
retrieveUrlTimeout,
38-
safe_listdir,
39-
sendMessage,
40-
)
41-
except ModuleNotFoundError:
42-
from pilotTools import (
43-
CommandBase,
44-
getSubmitterInfo,
45-
retrieveUrlTimeout,
46-
safe_listdir,
47-
sendMessage,
48-
)
33+
from pilotTools import (
34+
CommandBase,
35+
getSubmitterInfo,
36+
retrieveUrlTimeout,
37+
safe_listdir,
38+
sendMessage,
39+
)
4940

5041
############################
5142

0 commit comments

Comments
 (0)