Skip to content

Commit

Permalink
use WMCore.Configuration (fix #5119) (#5120)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddaina authored Nov 25, 2021
1 parent 0e4e2a2 commit b033ff0
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion doc/ExampleConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This is an example of a minimal CRAB3 configuration file.
"""

from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
import os

config = Configuration()
Expand Down
2 changes: 1 addition & 1 deletion doc/FullConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
most of the available configuration options.
"""

from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
import os

config = Configuration()
Expand Down
2 changes: 1 addition & 1 deletion doc/config/ExampleConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This is a test example of configuration file for CRAB-3 client
"""

from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
import os

config = Configuration()
Expand Down
2 changes: 1 addition & 1 deletion doc/config/FullConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This is a test example of configuration file for CRAB-3 client
"""

from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
import os

config = Configuration()
Expand Down
2 changes: 1 addition & 1 deletion doc/crabclient/userdoc/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ If another required CRAB3 parameter is not specified in the CRAB2 config file yo

And opening the config file you will see which parameters you need to modify::

from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
config = Configuration()
config.section_('General')
config.General.requestName = 'crab3taskname'
Expand Down
2 changes: 1 addition & 1 deletion src/python/CRABAPI/Abstractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import print_function
import CRABAPI.TopLevel
import CRABClient.Commands.submit
from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
class Task(object):
"""
Task - Wraps methods and attributes for a single analysis task
Expand Down
2 changes: 1 addition & 1 deletion src/python/CRABClient/Commands/SubCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ast import literal_eval
from datetime import timedelta

from CRABClient.Configuration import loadConfigurationFile, Configuration
from WMCore.Configuration import loadConfigurationFile, Configuration

from ServerUtilities import SERVICE_INSTANCES

Expand Down
2 changes: 1 addition & 1 deletion src/python/CRABClient/UserUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from CRABClient.ClientUtilities import DBSURLS, LOGLEVEL_MUTE, colors
from CRABClient.ClientUtilities import execute_command, getUserProxy
from CRABClient.ClientExceptions import ClientException, UsernameException
from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration

def config():
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def pythonise_(self, **options):
document = options.get('document', False)
comment = options.get('comment', False)

result = "from CRABClient.Configuration import Configuration\n"
result = "from WMCore.Configuration import Configuration\n"
result += "config = Configuration()\n"
for sectionName in self._internal_sections:
result += "config.section_(\'%s\')\n" % sectionName
Expand Down
2 changes: 1 addition & 1 deletion test/data/TestConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This is a test example of configuration file for CRAB-3 client
"""

from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
import os

config = Configuration()
Expand Down
2 changes: 1 addition & 1 deletion test/python/CRABClient_t/Client_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Client_t.py
"""

from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
import os
import unittest
import logging
Expand Down
2 changes: 1 addition & 1 deletion test/python/CRABClient_t/Commands_t/Commands_t.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import CRABRESTModelMock
from FakeRESTServer import FakeRESTServer
from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
from CRABClient.Commands.server_info import server_info
from CRABClient.Commands.getoutput import getoutput
from CRABClient.Commands.publish import publish
Expand Down
2 changes: 1 addition & 1 deletion test/python/CRABClient_t/JobType_t/CMSSWConfig_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from CRABClient.JobType.CMSSWConfig import CMSSWConfig
from CRABClient.JobType.ScramEnvironment import ScramEnvironment
from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration

#### Test WMCore.Configuration

Expand Down
2 changes: 1 addition & 1 deletion test/python/CRABClient_t/JobType_t/UserTarball_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import unittest

from CRABClient.JobType.UserTarball import UserTarball
from CRABClient.Configuration import Configuration
from WMCore.Configuration import Configuration
from CRABClient.ClientExceptions import InputFileNotFoundException

testWMConfig = Configuration()
Expand Down

0 comments on commit b033ff0

Please sign in to comment.