You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# we should fix this one day - we should not assume that the COMPAS executable
33
+
# is in the 'src' directory. The standard is to put the object files created
34
+
# by the compile into the 'obj' directory, and the executable files created by
35
+
# the link in the 'bin' directory.
36
+
#
37
+
# for now though, because this is how everybody expects it to be, we'll just check
38
+
# that the path to the root directory (the parent directory of the directory in
39
+
# which we expect the executable to reside - for now, 'src') is set to something.
40
+
41
+
compas_root_dir=os.environ.get('COMPAS_ROOT_DIR')
42
+
assertcompas_root_dirisnotNone, "Unable to locate the COMPAS executable: check that the environment variable COMPAS_ROOT_DIR is set correctly, and the COMPAS executable exists."
43
+
44
+
# construct path to executable
45
+
#
46
+
# ideally we wouldn't have the 'src' directory name (or any other directory name)
47
+
# prepended to the executable name - if we just execute the executable name on its
48
+
# own, as long as the user navigates to the directory in which the executable resides
49
+
# they don't need to set the COMPAS_ROOT_DIR environment variable
# check that a file with the correct name exists where we expect it to
56
+
assertos.path.isfile(compas_executable), "Unable to locate the COMPAS executable: check that the environment variable COMPAS_ROOT_DIR is set correctly, and the COMPAS executable exists."
57
+
58
+
36
59
enable_warnings=False# option to enable/disable warning messages
0 commit comments