Closed ryandesign closed 1 year ago
When build/
directory exists, SCons executes SConscript
script with current directory set to build/
, but current directory is not changed when this directory does not exist and ../.version
path becomes incorrect.
Should be fixed now. Apply the following change to 0.3 release:
--- tools/gpick.py
+++ tools/gpick.py
@@ -159,1 +159,1 @@
- with open("../.version", "r", encoding = 'utf-8') as version_file:
+ with open(self.File('#.version').abspath, "r", encoding = 'utf-8') as version_file:
Thanks! That works.
I downloaded the gpick 0.3 release tarball and ran
scons
in it and it failed:The .version file exists. It appears to be looking for the .version file one directory up from where it is for some reason:
https://github.com/thezbyg/gpick/blob/a8bc29c60d57933d9e8e8cb930d8e06586e0d315/tools/gpick.py#L164
This seems to fix it—at least it gets past this error and on to another one: