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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
simso/core/Scheduler.py
+6
-3
No files found.
simso/core/Scheduler.py
View file @
c4aad1c6
...
@@ -53,9 +53,12 @@ class SchedulerInfo(object):
...
@@ -53,9 +53,12 @@ class SchedulerInfo(object):
try
:
try
:
clas
=
None
clas
=
None
if
self
.
clas
:
if
self
.
clas
:
name
=
self
.
clas
.
rsplit
(
'.'
,
1
)[
1
]
if
type
(
self
.
clas
)
is
type
:
importlib
.
import_module
(
self
.
clas
)
clas
=
self
.
clas
clas
=
getattr
(
importlib
.
import_module
(
self
.
clas
),
name
)
else
:
name
=
self
.
clas
.
rsplit
(
'.'
,
1
)[
1
]
importlib
.
import_module
(
self
.
clas
)
clas
=
getattr
(
importlib
.
import_module
(
self
.
clas
),
name
)
elif
self
.
filename
:
elif
self
.
filename
:
path
,
name
=
os
.
path
.
split
(
self
.
filename
)
path
,
name
=
os
.
path
.
split
(
self
.
filename
)
name
=
os
.
path
.
splitext
(
name
)[
0
]
name
=
os
.
path
.
splitext
(
name
)[
0
]
...
...
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