diff options
author | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2024-10-19 17:00:32 (GMT) |
---|---|---|
committer | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2024-10-19 17:00:32 (GMT) |
commit | 07feba378c9e320072081c8c2e8e1835182d106c (patch) | |
tree | aea012947d0246fc0cbca6e8454894fdbf3b419c /SCons | |
parent | d536184b92cfc5047cd4781eeb75c636292f453a (diff) | |
download | SCons-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.py | 7 |
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.") |