diff --git a/checkdependencies.py b/checkdependencies.py index 43dc02c..61443b4 100755 --- a/checkdependencies.py +++ b/checkdependencies.py @@ -7,7 +7,7 @@ import pip dirname = os.path.dirname(__file__) -sys.path.append(os.path.join(dirname, "cli")) +sys.path.append(os.path.join(dirname, "lib")) import wireutils wireutils.cprintconf.name = "Perdyshot" wireutils.cprintconf.color= wireutils.bcolors.DARKCYAN diff --git a/cli/area.py b/cli/area.py index c1ff7cd..cd08aec 100755 --- a/cli/area.py +++ b/cli/area.py @@ -5,6 +5,8 @@ import argparse, os, sys, signal, time, temppath +dirname = os.path.dirname(__file__) +sys.path.append(os.path.join(dirname, os.path.pardir, "lib")) import wireutils wireutils.cprintconf.name = "Perdyshot" wireutils.cprintconf.color= wireutils.bcolors.DARKCYAN @@ -18,7 +20,6 @@ def main(argSource): - dirname = os.path.dirname(os.path.realpath(__file__)) cwd = os.getcwd() app = QtGui.QApplication(sys.argv) diff --git a/cli/window.py b/cli/window.py index 3318543..0c22eba 100755 --- a/cli/window.py +++ b/cli/window.py @@ -5,6 +5,8 @@ import argparse +dirname = os.path.dirname(__file__) +sys.path.append(os.path.join(dirname, os.path.pardir, "lib")) import wireutils wireutils.cprintconf.name = "Perdyshot" wireutils.cprintconf.color= wireutils.bcolors.DARKCYAN @@ -17,7 +19,6 @@ import subprocess, time, sys, os, signal def main(argSource): - dirname = os.path.dirname(os.path.realpath(__file__)) cwd = os.getcwd() version = 'Perdyshot ' + open(os.path.join(dirname, os.path.pardir, '.version'), 'r').read() diff --git a/cli/wireutils.py b/lib/wireutils.py similarity index 100% rename from cli/wireutils.py rename to lib/wireutils.py