Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann committed Jan 12, 2024
1 parent 8ee6564 commit 9b4d22e
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 9b4d22e

Please sign in to comment.