Skip to content

Commit

Permalink
Revert "Allow running sinol-make in subdirectory of package"
Browse files Browse the repository at this point in the history
This reverts commit 8151dba.
  • Loading branch information
MasloMaslane committed Sep 23, 2023
1 parent 6b9f866 commit c268ea1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/sinol_make/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ def check_if_package():
"""
Function to check if current directory is a package
"""
if os.path.exists(os.path.join(os.getcwd(), 'config.yml')):
return True
elif os.path.exists(os.path.join(os.getcwd(), '..', 'config.yml')):
os.chdir('..')

cwd = os.getcwd()
if os.path.exists(os.path.join(cwd, 'config.yml')):
return True
else:
return False
return False


def exit_if_not_package():
Expand Down

0 comments on commit c268ea1

Please sign in to comment.