Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
las3_pub
/
simso
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c4aad1c6
authored
Jul 07, 2015
by
Josué A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for loading classes by providing a class reference.
parent
3de3a25b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
simso/core/Scheduler.py
+3
-0
No files found.
simso/core/Scheduler.py
View file @
c4aad1c6
...
@@ -53,6 +53,9 @@ class SchedulerInfo(object):
...
@@ -53,6 +53,9 @@ class SchedulerInfo(object):
try
:
try
:
clas
=
None
clas
=
None
if
self
.
clas
:
if
self
.
clas
:
if
type
(
self
.
clas
)
is
type
:
clas
=
self
.
clas
else
:
name
=
self
.
clas
.
rsplit
(
'.'
,
1
)[
1
]
name
=
self
.
clas
.
rsplit
(
'.'
,
1
)[
1
]
importlib
.
import_module
(
self
.
clas
)
importlib
.
import_module
(
self
.
clas
)
clas
=
getattr
(
importlib
.
import_module
(
self
.
clas
),
name
)
clas
=
getattr
(
importlib
.
import_module
(
self
.
clas
),
name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment