Compare commits
3 Commits
2021.4
...
305a19730f
Author | SHA1 | Date | |
---|---|---|---|
305a19730f | |||
de15e81703 | |||
b91544a0da |
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
|||||||
MIT License Copyright (c) <year> <copyright holders>
|
MIT License Copyright (c) 2020 - 2021 sh-edraft.de
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
@@ -102,6 +102,9 @@ class GenerateService(CommandABC):
|
|||||||
rel_path = '/'.join(parts[:-1])
|
rel_path = '/'.join(parts[:-1])
|
||||||
class_name = parts[len(parts) - 1]
|
class_name = parts[len(parts) - 1]
|
||||||
|
|
||||||
|
if 'src' not in name:
|
||||||
|
rel_path = f'src/{rel_path}'
|
||||||
|
|
||||||
template = template(class_name, schematic, self._schematics[schematic]["Upper"], rel_path)
|
template = template(class_name, schematic, self._schematics[schematic]["Upper"], rel_path)
|
||||||
|
|
||||||
file_path = os.path.join(self._env.working_directory, template.path, template.name)
|
file_path = os.path.join(self._env.working_directory, template.path, template.name)
|
||||||
|
Reference in New Issue
Block a user