Set the path for the currently openned project file in the backend
Open, NormalPublic

Description

Similar to 976dbf7727389d022b8d884854ab2d3f8d008b50 we need to check how to support this in other backends, too. For example in python, after loading a saved Cantor python project file,

import os
print(__file__)

should print out the path of the project file, if possible.

Progress:

  • Python: __file__
  • Julia: (info about vars)
    • @__FILE__
    • @__DIR__
    • PROGRAM_FILE
  • Kalgebra: haven't this functionality?
  • Maxima: haven't this functionality?
  • Octave: mfilename('fullpath') should return script full path
  • R: Info haven't found.
  • Sage: __file__
  • Scilab: no info
asemke created this task.Apr 30 2018, 7:20 AM
asemke triaged this task as Normal priority.
sirgienko updated the task description. (Show Details)Jan 5 2020, 12:48 PM
sirgienko updated the task description. (Show Details)Sep 5 2020, 3:27 PM
sirgienko updated the task description. (Show Details)