Skip to content

Commit

Permalink
Merge pull request #32 from seowings/dev
Browse files Browse the repository at this point in the history
Fix folder paths for output and releases
  • Loading branch information
seowings authored Sep 24, 2023
2 parents 3b4ce7c + ec96b98 commit 31e17b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
author="Faisal Shahzad",
author_email="[email protected]",
url="https://github.com/serpwings/staticwordpress",
download_url="https://github.com/serpwings/staticwordpress/archive/v%s.tar.gz"
download_url="https://github.com/serpwings/staticwordpress/releases/v%s.tar.gz"
% __version__,
license="GPLv3+",
keywords=[
Expand Down
5 changes: 3 additions & 2 deletions ss_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# +++++++++++++++++++++++++++++++++++++++++++++++++++++

import os
from pathlib import Path

# +++++++++++++++++++++++++++++++++++++++++++++++++++++
# INTERNAL IMPORTS
Expand All @@ -51,8 +52,8 @@
env_search = os.environ.get("search") if os.environ.get("search") else "search"
env_output = os.environ.get("output") if os.environ.get("output") else "output"

if not os.path.exists(env_output):
os.mkdir(env_output)
# create output path if not exists
Path(env_output).mkdir(parents=True, exist_ok=True)

ss_zip_obj = Workflow()
ss_zip_obj.create_project(
Expand Down

0 comments on commit 31e17b4

Please sign in to comment.