Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmiger committed Oct 23, 2023
1 parent f8772c6 commit dac839b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions syclops/blender/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Main module for handling command-line arguments and launching the scene creator."""

import argparse
import os
import sys
from pathlib import Path

Expand Down Expand Up @@ -49,7 +48,7 @@ def parse_arguments():
"--catalog", help="Path to catalog file", default=DEFAULT_CATALOG
)
parser.add_argument(
"--site-packages-path", help="Path to site-packages", default=DEFAULT_CATALOG
"--site-packages-path", help="Path to site-packages"
)

argv = sys.argv
Expand All @@ -73,9 +72,11 @@ def main(args):

if __name__ == "__main__":
args = parse_arguments()

site_packages_path = Path(args.site_packages_path).resolve()
print(f"Adding {site_packages_path} to sys.path")
sys.path.append(str(site_packages_path))

import debugpy
import yaml
from syclops.blender.scene import Scene
Expand All @@ -86,3 +87,4 @@ def main(args):
debugpy.wait_for_client()

main(args)

0 comments on commit dac839b

Please sign in to comment.