Skip to content

Commit

Permalink
run: Always use absolute path for 'basedir'
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed May 28, 2021
1 parent c8d92e4 commit 46e2a98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Orange/canvas/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def main(argv=None):
)
widget_discovery.run(cfg.widgets_entry_points())
model = cfg.workflow_constructor()
model.set_runtime_env("basedir", os.path.dirname(filename))
model.set_runtime_env(
"basedir", os.path.abspath(os.path.dirname(filename))
)
sigprop = model.findChild(signalmanager.SignalManager)
sigprop.pause() # Pause signal propagation during load

Expand Down

0 comments on commit 46e2a98

Please sign in to comment.