-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathairconics_setup.py
More file actions
executable file
·40 lines (31 loc) · 1.39 KB
/
Copy pathairconics_setup.py
File metadata and controls
executable file
·40 lines (31 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# airconics_setup.py Setup file: here you can specify top level system variables
# ==============================================================================
# AirCONICS
# Aircraft CONfiguration through Integrated Cross-disciplinary Scripting
# version 0.2.1
# Andras Sobester, 2015.
# Bug reports to a.sobester@soton.ac.uk or @ASobester please.
# ==============================================================================
import sys
import os
# *** There are NO entries to edit here ***
# Check if using unix style system or windows:
if os.name in ['posix','mac']:
RhinoVersion = 2
elif os.name == 'nt':
RhinoVersion = 1
# ONE:
# The string below should contain the path to your installation of AirCONICS
# Example: AirCONICSpath = "C:/Users/as/Documents/airconicsv021/"
AirCONICSpath = os.getcwd() + '/'
# TWO:
# The string below should contain the path to your library of Selig-formatted
# airfoils. If you are using the UIUC library included in this installation,
# this should be the path to the coord_seligFmt folder included.
# Example: SeligPath = "C:/Users/as/Documents/airconicsv021/coord_seligFmt/"
SeligPath = AirCONICSpath + 'coord_seligFmt/'
os.listdir(SeligPath)
# ==============================================================================
print "System variables initialised."
if AirCONICSpath not in sys.path:
sys.path.append(AirCONICSpath)