Origin Ver. and Service Release: 10.0.0.154 OriginPro 2023 Operating System: Windows 10
Hi!
I was recently trying to access and edit an origin project from Python, but I was having trouble saving the project as any edits made in the script were not visible afterward in the project. The version of the op package that I am running is 1.1.4 in Python 3.10.7. Here is an example script that I have tried to run.
import originpro as op
print(op.open("C:/Path/To/File/myProject.opju""))
op.pe.mkdir("TEST")
print(op.project.save("C:/Path/To/File/myProject.opju"))
op.utils.exit()
The output in the terminal will be: True False
So the project is loaded correctly, but fails to save. Any help is greatly appreciated! Thanks in advance.
import originpro as op
print(op.open(r"C:\Path\To\File\myProject.opju"))
op.pe.mkdir("TEST")
print(op.project.save(r"C:\Path\To\File\myProject.opju"))
op.utils.exit()