Skip to content

Commit

Permalink
Fix server installation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Mar 30, 2024
1 parent 2855973 commit 44818b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flapi/cli/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from shutil import copytree, rmtree
from pathlib import Path
from . import consts
from .util import yn_prompt, output_dir, script_dir
from .util import yn_prompt, output_dir, server_dir


@click.command()
Expand Down Expand Up @@ -45,7 +45,7 @@ def install(data_dir: Path, yes: bool = False):
rmtree(output_location)

# Determine where we are, so we can locate the script folder
script_location = script_dir()
script_location = server_dir()

# Now copy the script folder to the output folder
copytree(script_location, output_location)
Expand Down
4 changes: 2 additions & 2 deletions flapi/cli/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def output_dir(data_dir: Path) -> Path:
"FL Studio", "Settings", "Hardware", "Flapi Server")


def script_dir() -> Path:
def server_dir() -> Path:
"""
Return the current location of the Flapi server script
"""
return Path(__file__).parent.parent.joinpath("script")
return Path(__file__).parent.parent.joinpath("server")

0 comments on commit 44818b4

Please sign in to comment.