Skip to content

Commit

Permalink
Fix/paths (#43)
Browse files Browse the repository at this point in the history
* fixed user agent version

* updated paths
  • Loading branch information
nik-solcast authored Nov 18, 2024
1 parent f580ac8 commit 6fe843a
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions generate_sdk_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@
import subprocess
import hashlib

BASE_DIR = os.path.dirname(os.path.abspath(__file__))

# Paths
SDK_PATH = "./src/Solcast/Clients"
OUTPUT_DOCS_PATH = "./docs"
CACHE_PATH = "./tmp/samples/cache"
SAMPLES_PATH = "./tmp/samples"
SOLCAST_PROJECT_PATH = "./src/Solcast/Solcast.csproj"
SDK_PATH = os.path.join(BASE_DIR, "src", "Solcast", "Clients")
OUTPUT_DOCS_PATH = os.path.join(BASE_DIR, "docs")
CACHE_PATH = os.path.join(BASE_DIR, "tmp", "samples", "cache")
SAMPLES_PATH = os.path.join(BASE_DIR, "tmp", "samples")
SOLCAST_PROJECT_PATH = os.path.join(BASE_DIR, "src", "Solcast", "Solcast.csproj")

print(f"SDK_PATH: {SDK_PATH}")
print(f"OUTPUT_DOCS_PATH: {OUTPUT_DOCS_PATH}")
print(f"CACHE_PATH: {CACHE_PATH}")
print(f"SAMPLES_PATH: {SAMPLES_PATH}")
print(f"SOLCAST_PROJECT_PATH: {SOLCAST_PROJECT_PATH}")

# Ensure the sample output and cache directories exist
os.makedirs(CACHE_PATH, exist_ok=True)
Expand Down

0 comments on commit 6fe843a

Please sign in to comment.