mirror of
https://gitlab.com/openlp/documentation.git
synced 2024-12-25 03:04:06 +00:00
Added it to scan.py too
This commit is contained in:
parent
0d584e3e87
commit
a968e4fadb
@ -82,8 +82,11 @@ def progress(queue, number):
|
||||
def main():
|
||||
modules = []
|
||||
|
||||
path_to_code = os.path.abspath(os.path.join(os.path.split(__file__)[0],
|
||||
'..', '..', '..', '..', 'openlp', 'trunk'))
|
||||
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],
|
||||
'..', '..', '..', '..', 'openlp', 'trunk'))
|
||||
if not os.path.exists(path_to_code):
|
||||
print('Incorrect path to code, expecting "%s"' % path_to_code)
|
||||
sys.exit(1)
|
||||
@ -118,3 +121,4 @@ def main():
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user