Professional IronPython



Download 20,35 Mb.
Pdf ko'rish
bet50/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   46   47   48   49   50   51   52   53   ...   453
FIgURE 2-3: 
Modify the properties to match your project requirements.
FIgURE 2-2: 
IPY.EXE
becomes the focal point
for a new solution.
548592c02.indd 25
2/24/10 12:47:19 PM
www.finebook.ir


26

CHAPTER 2
Understanding the ironPython Basics
Command line switches are case sensitive. Using the wrong case can result in 
unexpected behavior. For example, if you use the 
-s
 command line switch in 
place of the 
-S
 command line switch, you’ll obtain an unexpected result from 
the IronPython interpreter. In this case, the interpreter won’t add the user site 
directory to sys.path.
5.
Select the Arguments field. Type 
-D
 NameOfProject
, where 
NameOfProject
is a Python 
(.py) file. For example, the example project uses MyFirst.py, so you’d type 
-D MyFirst.py

Remember that the 
-D
command line switch turns on debugging. You can find other com-
mand line arguments listed in the “Understanding the IPY.EXE Command Line Syntax” 
section of Chapter 1. Include any other command line switches you want to use in the 
Arguments field.
The .py file extension is case sensitive. You must use lowercase for the file 
extension. For example, IronPython will import a module named MyStuff.py, 
but it won’t import a module named MyStuff.PY. Extensions aren’t normally 
case sensitive, so this IronPython oddity could cause difficult-to-find errors.
6.
Select the Working Directory field. Visual Studio will default to using the \Program Files\
IronPython 2.6 directory — a directory that you’re unlikely to use to hold your source code 
files. Change the Working Directory to match your source code directory. Click the ellipses 
to locate the directory on your hard drive using the Browse for Folder dialog box.

Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   46   47   48   49   50   51   52   53   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish