0

Short file path

Hello community!!! Is there a way to write a file's path in short? Currently I am writing like this

psspy.progress_output(2,r"C:\Project\Progress Output.txt",[4,0])
VAAJKAPOOR's avatar
11
VAAJKAPOOR
asked 2025-09-16 01:15:49 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

I'm not sure what you want, but to write in the working directory use:

psspy.progress_output(2,r"Progress Output.txt",[4,0])
perolofl's avatar
3.8k
perolofl
answered 2025-09-16 01:21:27 -0500
edit flag offensive 0 remove flag delete link

Comments

I tried that. Got "insufficient access rights" error and the whole progress output was redirected to the python terminal

VAAJKAPOOR's avatar VAAJKAPOOR (2025-09-16 01:30:22 -0500) edit

Do you have write access to the working directory?

perolofl's avatar perolofl (2025-09-16 04:26:16 -0500) edit

I was using python through notepad++ therefore there was a problem with the path. Now it's solved. Tack för hjälpen Per Olof 😊

VAAJKAPOOR's avatar VAAJKAPOOR (2025-09-16 04:51:00 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer