Ask Your Question
0

Case opening file dir

asked 2015-07-24 05:37:55 -0500

anonymous user

Anonymous

Hey

I try to make PSSE open file by my entered name. But it doesn't open it with string file directory. What kind of variable it needs or is there another way. My sample code is below and error under ##

name= str(raw_input('')) print(name) sav='.sav' casename=name+sav fdir='C:\PSS\FAILID\%s' %casename psspy.case(r"""str(fdir)""")

File not found. str(fdir).cnv (OpnApplFil/OPNPTI)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-07-24 19:04:44 -0500

jconto gravatar image

Your code works fine. For the version below, run it after opening PSSe v.33 and enter 'savnw' [no quotes] to the question.

name= raw_input('enter a base case name [.sav]')
print (name)
sav='.sav'
casename=name+sav
fdir='C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\%s'%casename
print (fdir)
psspy.case(fdir)

Your error message contains a '.cnv' extension. My guest is you are typing an invalid filename that it does not exist in your working folder.

edit flag offensive delete link more
0

answered 2015-07-27 00:31:54 -0500

Veiko gravatar image

Thank you for help.

Works fine now. I was using (r""" """) marks that the recorded macro added.

edit flag offensive delete link more

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

Stats

Asked: 2015-07-24 05:37:55 -0500

Seen: 2,171 times

Last updated: Jul 27 '15

Related questions