Added it to scan.py too

This commit is contained in:
Raoul Snyman 2015-10-16 22:44:43 +02:00
parent 0d584e3e87
commit a968e4fadb

View File

@ -82,6 +82,9 @@ def progress(queue, number):
def main(): def main():
modules = [] modules = []
if 'OPENLP_SOURCE' in os.environ:
path_to_code = os.path.abspath(os.environ['OPENLP_SOURCE'])
else:
path_to_code = os.path.abspath(os.path.join(os.path.split(__file__)[0], path_to_code = os.path.abspath(os.path.join(os.path.split(__file__)[0],
'..', '..', '..', '..', 'openlp', 'trunk')) '..', '..', '..', '..', 'openlp', 'trunk'))
if not os.path.exists(path_to_code): if not os.path.exists(path_to_code):
@ -118,3 +121,4 @@ def main():
if __name__ == '__main__': if __name__ == '__main__':
main() main()