Skip to content

Commit

Permalink
Merge pull request #3870 from ferdnyc/initfiles
Browse files Browse the repository at this point in the history
Add __init__.py files to all Python source file paths (including all parent dirs), rename Blender scripts
  • Loading branch information
ferdnyc authored Dec 25, 2020
2 parents d174852 + 0702fe0 commit 09c30dc
Show file tree
Hide file tree
Showing 35 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added src/classes/__init__.py
Empty file.
Empty file.
Empty file.
Empty file added src/classes/legacy/__init__.py
Empty file.
Empty file.
Empty file.
Empty file added src/emojis/__init__.py
Empty file.
Empty file added src/language/__init__.py
Empty file.
Empty file added src/tests/__init__.py
Empty file.
Empty file added src/windows/__init__.py
Empty file.
Empty file added src/windows/models/__init__.py
Empty file.
Empty file added src/windows/views/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions src/windows/views/blender_listview.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def inject_params(self, source_path, out_path, frame=None):
s = settings.get_settings()
gpu_code_body = None
if s.get("blender_gpu_enabled"):
gpu_enable_py = os.path.join(info.PATH, "blender", "scripts", "gpu_enable.py")
gpu_enable_py = os.path.join(info.PATH, "blender", "scripts", "gpu_enable.py.in")
try:
with open(gpu_enable_py, 'r') as f:
gpu_code_body = f.read()
Expand Down Expand Up @@ -612,7 +612,7 @@ def Render(self, frame=None):
info.PATH, "blender", "blend", self.selected_template)
source_script = os.path.join(
info.PATH, "blender", "scripts",
self.selected_template.replace(".blend", ".py"))
self.selected_template.replace(".blend", ".py.in"))
target_script = os.path.join(
info.BLENDER_PATH, self.unique_folder_name,
self.selected_template.replace(".blend", ".py"))
Expand Down
Empty file.

0 comments on commit 09c30dc

Please sign in to comment.