Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann authored and 0cyn committed Jan 13, 2024
1 parent d7d6518 commit 15e4d41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dragon/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,10 @@ def _new_for_type(self, type, proj_root):
self.variables['prefix'] = get_input('Class name prefix (three or more characters unique to this project)',
self.name)
layoutPath = os.path.join(proj_root, 'layout', 'Library', 'PreferenceLoader', 'Preferences')
if not os.path.exists(layoutPath):
os.makedirs(layoutPath, exist_ok=True)
with open(os.path.join(layoutPath, self.name + '.plist'), 'w') as out:
out.write(Prefs_LPLP_NamePlist.format(self.name, self.variables['prefix'], self.name))
if not os.path.exists(layoutPath):
os.makedirs(layoutPath, exist_ok=True)
with open(os.path.join(layoutPath, self.name + '.plist'), 'w') as out:
out.write(Prefs_LPLP_NamePlist.format(self.name, self.variables['prefix'], self.name))
if not os.path.exists('Resources'):
os.mkdir('Resources')
for f in ['icon.png', '[email protected]', '[email protected]']:
Expand Down

0 comments on commit 15e4d41

Please sign in to comment.