Skip to content

Commit 4bf602a

Browse files
author
arch
committed
include current path in PATH
1 parent b073e6a commit 4bf602a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

funscript_editor/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/env python3
22

3+
import os
34
import argparse
45

56
from funscript_editor.api import show_editor, generate_funscript
@@ -12,5 +13,9 @@ def main():
1213
parser.add_argument("-o", "--output", type = str, default = "/tmp/funscript_actions.csv", help = "Output Path")
1314
parser.add_argument("-s", "--start", type = int, default = 0, help = "Start Time in Milliseconds")
1415
args = parser.parse_args()
16+
17+
if os.getcwd() not in os.environ['PATH']:
18+
os.environ['PATH'] += os.getcwd() + os.sep
19+
1520
if not args.generator: show_editor()
1621
else: generate_funscript(args.input, args.start, args.output)

0 commit comments

Comments
 (0)