1) open file in root_directory causes an exception
(open file: goto root and select for example autoexec.bat)
2) parameter sic\\test.txt (probieren)
pype.py .\sic\changelog.py or pype.py sic\changelog.py doesn't work (pype doesn't find or
recognize this file)
Yeah, I don't know what to tell you. I could have sworn I fixed that behavior in 1.6.2 or something like that.
The problem is that I can't duplicate your problem. I CAN open stuff in the root. I CAN open relative paths.
For me, all of the below work:
Every file name gets tossed into os.path.realpath(pth), which should, on evey platform, reslove relative and absolute path references.
I've added in a bit to always attempt to os.path.realpath(os.path.join(os.getcwd(), pth)) in OnDrop (the function that gets called for every file open), and will be releasing a 18.104.22.168 later today with a couple other bugfixes.
Tell me if this solves the problem.
(I haven't yet downloaded 22.214.171.124)
Maybe it is again a problem with this annoying spaces in the german folder names.
I wanted to open a log.txt in the root.
Traceback (most recent call last):
File "c:\Eigene Dateien\python\_pype\6_51\pype.py", line 430, in OnDrop
a = self.newTab(d,f, len(fnames)==1)
File "c:\Eigene Dateien\python\_pype\6_51\pype.py", line 672, in newTab
IOError: [Errno 2] No such file or directory: 'c:\\eigene dateien\\python\\_pype\\6_51\\log_.txt'
Sorry, I have mixed up something:
pype.py c:\log_.txt c:\log.txt is ok (opens both files)
pype.py sic\changelog.txt is ok
pype.py sic\changelog.txt sic\changel.txt only opens the first (changelog.txt)
I'll wait for the next version. thanks.
When you get the error opening 'c:\\eigene dateien\\python\\_pype\\6_51\\log_.txt', are you actually trying to open that file, or are you trying to open c:\log_.txt?
Regardless, the line that reads os.path.normcase(os.path.normpath(os.path.realpath(os.path.join(cwd, i)))) should work.
The second problem, with:
pype.py sic\changelog.txt sic\changel.txt
I just fixed. Try 126.96.36.199 that is now available.
To the first issue:
I start the editor, then call File: open file =>
I select from the root directory log_.txt; click on open => and then the exception occurs.
I don't know; anyway it's not so important; I made a (clumsy) workaround:
if dlg.ShowModal() == wxID_OK:
dn = dlg.GetDirectory()
>insert if dn[-1] == ':':
>insert dn = dn + '\\'
Or even just replace the portion that reads:
dn = dlg.GetDirectory()
filenames = dlg.GetFilenames()
for fn in filenames:
self.config['lp'] = dn
self.config['lp'] = dlg.GetDirectory()
I thought I had changed that before. My mistake. I guess PyPE 188.8.131.52 gets released today *laugh*
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.