two smaller bugs

  • Franz Steinhaeusler


    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) .\sic\ or sic\ doesn't work (pype doesn't find or
    recognize this file)

    • Josiah Carlson

      Josiah Carlson - 2003-11-01

      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: \boot.ini c:\boot.ini c:\winnt\..\boot.ini .\ ..\pype\

      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 later today with a couple other bugfixes.

      Tell me if this solves the problem.

    • Franz Steinhaeusler


      (I haven't yet downloaded
      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\", line 430, in OnDrop
          a = self.newTab(d,f, len(fnames)==1)
        File "c:\Eigene Dateien\python\_pype\6_51\", 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: c:\log_.txt c:\log.txt is ok (opens both files) sic\changelog.txt is ok sic\changelog.txt sic\changel.txt only opens the first (changelog.txt)

      I'll wait for the next version. thanks.

      • Josiah Carlson

        Josiah Carlson - 2003-11-02

        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: sic\changelog.txt sic\changel.txt
        I just fixed.  Try that is now available.

    • Franz Steinhaeusler

      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:

      bei onopen:
              if dlg.ShowModal() == wxID_OK:
                  dn = dlg.GetDirectory()
      >insert             if dn[-1] == ':':
      >insert              dn = dn + '\\'

      • Josiah Carlson

        Josiah Carlson - 2003-11-02

        Or even just replace the portion that reads:
                    dn = dlg.GetDirectory()
                    filenames = dlg.GetFilenames()
                    for fn in filenames:
                        self.OnDrop([self.getAbsolute(fn, dn)])
                    self.config['lp'] = dn
                    self.config['lp'] = dlg.GetDirectory()

        I thought I had changed that before.  My mistake.  I guess PyPE gets released today *laugh*


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks