mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-29 14:06:47 +00:00
Ensure output directory has been created
This commit is contained in:
parent
a5a78f21cd
commit
ef422b4f00
@ -74,6 +74,10 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
# Ensure the 'collected' output directory exists
|
||||||
|
output_dir = os.path.join(here, 'collected')
|
||||||
|
os.makedirs(output_dir, exist_ok=True)
|
||||||
|
|
||||||
for item in os.listdir(here):
|
for item in os.listdir(here):
|
||||||
|
|
||||||
# Ignore the output directory
|
# Ignore the output directory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user