Skip to content

Commit f62b5ec

Browse files
authored
Merge pull request #170 from mekanix/fix-init
Fix initialization of a project
2 parents 67fa0be + 126ec94 commit f62b5ec

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

freenit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.13"
1+
__version__ = "0.3.14"

freenit/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import pathlib
23
import subprocess
34

@@ -7,4 +8,7 @@
78
def main():
89
path = pathlib.Path(__file__).parent.resolve()
910
project_name = prompt("Name of the project: ")
10-
subprocess.run([f"{path}/../bin/freenit.sh", "project", project_name])
11+
executable = f"{path}/../bin/freenit.sh"
12+
if not os.path.exists(executable):
13+
executable = f"{path}/bin/freenit.sh"
14+
subprocess.run([executable, "project", project_name])

0 commit comments

Comments
 (0)