summaryrefslogtreecommitdiffstats
path: root/SCons
diff options
context:
space:
mode:
authorJoseph Brill <48932340+jcbrill@users.noreply.github.com>2024-10-19 17:00:32 (GMT)
committerJoseph Brill <48932340+jcbrill@users.noreply.github.com>2024-10-19 17:00:32 (GMT)
commit07feba378c9e320072081c8c2e8e1835182d106c (patch)
treeaea012947d0246fc0cbca6e8454894fdbf3b419c /SCons
parentd536184b92cfc5047cd4781eeb75c636292f453a (diff)
downloadSCons-07feba378c9e320072081c8c2e8e1835182d106c.zip
SCons-07feba378c9e320072081c8c2e8e1835182d106c.tar.gz
SCons-07feba378c9e320072081c8c2e8e1835182d106c.tar.bz2
Minor code order refactor in msvs.py.
Diffstat (limited to 'SCons')
-rw-r--r--SCons/Tool/msvs.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/SCons/Tool/msvs.py b/SCons/Tool/msvs.py
index 8835a11..6d8b45e 100644
--- a/SCons/Tool/msvs.py
+++ b/SCons/Tool/msvs.py
@@ -443,9 +443,6 @@ class _DSPGenerator:
'misc']
def __init__(self, dspfile, source, env) -> None:
- dspnode = env.File(dspfile)
- self.project_guid = _projectGUID(env, dspfile)
- dspnode.Tag('project_guid', self.project_guid)
self.dspfile = str(dspfile)
try:
get_abspath = dspfile.get_abspath
@@ -454,6 +451,10 @@ class _DSPGenerator:
else:
self.dspabs = get_abspath()
+ self.project_guid = _projectGUID(env, self.dspfile)
+ dspnode = env.File(self.dspfile)
+ dspnode.Tag('project_guid', self.project_guid)
+
if 'variant' not in env:
raise SCons.Errors.InternalError("You must specify a 'variant' argument (i.e. 'Debug' or " +\
"'Release') to create an MSVSProject.")