Ask Your Question
0

Short file path

asked 2025-09-16 01:15:49 -0500

VAAJKAPOOR gravatar image

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])
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2025-09-16 01:21:27 -0500

perolofl gravatar image

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])
edit flag offensive delete link more

Comments

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

VAAJKAPOOR gravatar imageVAAJKAPOOR ( 2025-09-16 01:30:22 -0500 )edit

Do you have write access to the working directory?

perolofl gravatar imageperolofl ( 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 gravatar imageVAAJKAPOOR ( 2025-09-16 04:51:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2025-09-16 01:15:49 -0500

Seen: 61 times

Last updated: Sep 16