Fixed the FileBrowser (0.6) Plug-in bug in Editra.

Source: Internet
Author: User

I recently liked the D language, and found that editra is a good tool that supports the D language and many language syntaxes.
Editor, The filebrowser plug-in encountered a problem during use, that is, an exception occurs when you click a node in the directory tree.
Since editra is written in Python, its plug-in is also a python module, each plug-in is an egg file, in essence
Is a zip file, which contains the plug-in Code and related information. Fix the bug.

Assume that your editra is installed in C: \ Program Files \ editra \ and the filebrowser plug-in has been installed,
In C: \ Program Files \ editra \ plugins or % USERPROFILE % \. editra \ plugins, find
Filebrowser-0.6-py2.5.egg, name it filebrowser-0.6-py2.5.zip, and then resolve it
Decompress the package and generate two directories:
Filebrowser
Egg-Info

Go to filebrowser, open browser. py, and go to row 489:
Return r_txt + util. getpathchar (). Join (PATH)
Change it:
Return r_txt + OS. Path. sep. Join (PATH)
Save the disk and exit. Do not change the indentation of the row. Then compile browser. py into browser. PyC.

Update the file with the same name in filebrowser-0.6-py2.5.zip with the new browser.pyand browser.pyc. Last
Rename filebrowser-0.6-py2.5.zip to a FileBrowser-0.6-py2.5.egg.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.