Example #1
0
    def plugin_loaded():
        try:
            try:
                from sublimerge.sublimerge_runtime import SublimergeRuntime
            except ImportError:
                from .sublimerge.sublimerge_runtime import SublimergeRuntime

            if st_ver == 3:
                try:
                    from sublimerge.sublimerge_st3 import st3_loader
                except ImportError:
                    from .sublimerge.sublimerge_st3 import st3_loader

                SublimergeRuntime.my_dir = st3_loader()
            else:
                for pack_name in ['Sublimerge 2', 'Sublimerge Pro']:
                    pack_path = os.path.join(sublime.packages_path(),
                                             pack_name)

                    if os.path.exists(pack_path):
                        SublimergeRuntime.my_dir = pack_path
                        break

        except:
            report_error()
Example #2
0
    def plugin_loaded():
        try:
            try:
                from sublimerge.sublimerge_runtime import SublimergeRuntime
            except:
                from .sublimerge.sublimerge_runtime import SublimergeRuntime

            if st_ver == 3:
                try:
                    from sublimerge.sublimerge_st3 import st3_loader
                except:
                    from .sublimerge.sublimerge_st3 import st3_loader

                SublimergeRuntime.my_dir = st3_loader()
            else:
                SublimergeRuntime.my_dir = os.path.join(sublime.packages_path(), 'Sublimerge Pro')
        except:
            report_error()
Example #3
0
                from .sublimerge.sublimerge_runtime import SublimergeRuntime

            if st_ver == 3:
                try:
                    from sublimerge.sublimerge_st3 import st3_loader
                except:
                    from .sublimerge.sublimerge_st3 import st3_loader

                SublimergeRuntime.my_dir = st3_loader()
            else:
                SublimergeRuntime.my_dir = os.path.join(sublime.packages_path(), 'Sublimerge Pro')
        except:
            report_error()

    try:
        from sublimerge.sublimerge_commands import *
        from sublimerge.sublimerge_diff_commands import *
        from sublimerge.sublimerge_editor_commands import *
        from sublimerge.sublimerge_events_listener import SublimergeEventsListener

    except:
        from .sublimerge.sublimerge_commands import *
        from .sublimerge.sublimerge_diff_commands import *
        from .sublimerge.sublimerge_editor_commands import *
        from .sublimerge.sublimerge_events_listener import SublimergeEventsListener

    if st_ver == 2:
        plugin_loaded()
except:
    report_error()