Skip to content

Commit 60e5867

Browse files
committed
ensure we dont create symlink version unless tcl and default version is true
Signed-off-by: vsoch <[email protected]>
1 parent 4e56788 commit 60e5867

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shpc/main/modules/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ def create_symlink(self, module_dir):
202202
os.symlink(module_dir, symlink_path)
203203

204204
# If we don't have a version file in root, create it
205-
version_file = os.path.join(os.path.dirname(symlink_path), ".version")
206-
if not os.path.exists(version_file):
207-
Path(version_file).touch()
205+
if self.module_extension != "tcl" and self.settings.default_version == True:
206+
version_file = os.path.join(os.path.dirname(symlink_path), ".version")
207+
if not os.path.exists(version_file):
208+
Path(version_file).touch()
208209

209210
def check_symlink(self, module_dir, symlink=False):
210211
"""

0 commit comments

Comments
 (0)