Skip to content

Commit

Permalink
portfolio script bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PratherConid committed Oct 2, 2023
1 parent 71798cc commit ef1a982
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion portfolio/portfolio.fo.parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ class RunResult:


def __init__(self, conf_path, preferred_time):
import os
cwd = os.path.dirname(os.path.realpath(__file__))
conf_path = cwd + "/" + conf_path
self._conf_path = conf_path
self._preferred_time = preferred_time

import os
if not os.path.isfile(conf_path):
raise ValueError("{0} cannot be found".format(conf_path))
if not (os.access(conf_path, os.X_OK)):
Expand Down
4 changes: 3 additions & 1 deletion portfolio/portfolio.lams.parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ class RunResult:


def __init__(self, conf_path, preferred_time):
import os
cwd = os.path.dirname(os.path.realpath(__file__))
conf_path = cwd + "/" + conf_path
self._conf_path = conf_path
self._preferred_time = preferred_time

import os
if not os.path.isfile(conf_path):
raise ValueError("{0} cannot be found".format(conf_path))
if not (os.access(conf_path, os.X_OK)):
Expand Down
4 changes: 3 additions & 1 deletion portfolio/portfolio.sh.sequential.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ class RunResult:


def __init__(self, conf_path, preferred_time):
import os
cwd = os.path.dirname(os.path.realpath(__file__))
conf_path = cwd + "/" + conf_path
self._conf_path = conf_path
self._preferred_time = preferred_time

import os
if not os.path.isfile(conf_path):
raise ValueError("{0} cannot be found".format(conf_path))
if not (os.access(conf_path, os.X_OK)):
Expand Down

0 comments on commit ef1a982

Please sign in to comment.