Skip to content

Scheduler wrong paths #1

@fizzi01

Description

@fizzi01

The current implementation has a problem when launching the script natively with python.
The scheduler exec path is incorrectly set to the python exe without effectively launching the module "outfit.py."
When launching with python it must be added after exe_filepath the current module path like
os.path.abspath(__file__)

OUTFIT/src/outfit.py

Lines 346 to 358 in 53f0dee

exe_filepath = sys.executable
if not os.path.isfile(exe_filepath):
logging.error("Python executable not found.")
wx.MessageBox("Internal error!", "Error", wx.ICON_ERROR)
return
schedule_script(
exe_filepath,
['--env', env_abs_filepath],
start_dt,
end_dt,
interval
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions