Move plugin into plugins directory to be included in the sdist for issue645
This commit is contained in:
1 parent
63f4c42482
commit
7c35fd21d9
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -21,7 +21,7 @@ from tryton.gui.window.dbrestore import DBRestore
|
||||
import re
|
||||
import base64
|
||||
import tryton.translate as translate
|
||||
import tryton.plugin
|
||||
import tryton.plugins
|
||||
import pango
|
||||
|
||||
_ = gettext.gettext
|
||||
@@ -1177,7 +1177,7 @@ class Main(object):
|
||||
'ids': self.pages[page].ids_get(),
|
||||
'id': self.pages[page].id_get(),
|
||||
}
|
||||
tryton.plugin.execute(datas, self.window)
|
||||
tryton.plugins.execute(datas, self.window)
|
||||
|
||||
@staticmethod
|
||||
def sig_quit(widget=None):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
import common
|
||||
from tryton import common
|
||||
import os
|
||||
import sys
|
||||
import imp
|
||||
@@ -8,7 +8,7 @@ import gettext
|
||||
|
||||
_ = gettext.gettext
|
||||
|
||||
PLUGINS_PATH = os.path.join(os.path.dirname(__file__), 'plugins')
|
||||
PLUGINS_PATH = os.path.dirname(__file__)
|
||||
if not os.path.isdir(PLUGINS_PATH):
|
||||
# try for py2exe
|
||||
PLUGINS_PATH = os.path.join(os.path.abspath(os.path.normpath(
|
||||
Reference in new issue
Block a user