When you execute imported files, each project directory in the importing project is located at /mnt<project owner’s username>/<project name>
.
The path for your project updates from /mnt
to /mnt<project owner’s username>/<project name>
.
You might have to update file paths in your project or scripts to reflect these changes.
If you have hardcoded any paths in your project to /mnt
, replace the hardcoded paths with the environment variable, $DOMINO_WORKING_DIR
.
This ensures that you have the correct path.
See Domino Environment Variables for more information.
When you run Python scripts from an imported project, you might encounter the following error:
FileNotFoundError: [Error 2] No such file or directory:
Python scripts execute imported files from the current working directory. If you have a relative path in the imported file, the script will try to find the file in the current directory and fail.
Update the Python script to use an absolute path based on the current location of the imported file.
For example, if you were to import os
, update the path as follows:
import os
file_name = os.path.join(os.path.dirname(__file__), 'your_referenced_file.dat')