-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]']: | ||
|