mv some of python files to libs

This commit is contained in:
TzuTa Lin 2015-09-17 15:22:29 +08:00
parent 7b8a3bf2af
commit 8d81647864
11 changed files with 9 additions and 4 deletions

8
_init_path.py Normal file
View File

@ -0,0 +1,8 @@
"""Set up paths"""
import sys
def add_path(path):
if path not in sys.path:
sys.path.insert(0, path)
add_path('libs')

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf8 -*- # -*- coding: utf8 -*-
import _init_path
import os.path import os.path
import re import re
import sys import sys

View File

@ -3,9 +3,6 @@ from PyQt4.QtCore import *
from lib import newIcon, labelValidator from lib import newIcon, labelValidator
# TODO:
# - Calculate optimal position so as not to go out of screen area.
BB = QDialogButtonBox BB = QDialogButtonBox
class LabelDialog(QDialog): class LabelDialog(QDialog):

View File