File locking problem on Windows

Issue #3 new
Anonymous created an issue

In create_mnemonic_keymap the final statement "os.rename(fn+'.tmp', fn)" in line 188 often fails on startup of Sublime Text 2. It seems that the file is locked. A temporary fix is to open "Character Table.py", uncomment the code and save. This causes Sublime Text to correctly load the package.

Comments (1)

  1. Elphin Stenner

    The issue seems to come from the user_dir variable

    os.path.join(sublime.packages_path(), 'User', "Character Table", "Default")
    

    The "Default" directory does not exist. Removing it from the above code seems to fix the issue.

  2. Log in to comment