| | |
Command line question
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2008
Posts: 38
Reputation:
Solved Threads: 4
You could find out the os by importing the platform module
platform.system() should give the os or if your looking for a particlar release you could use the platform.release()
platform.system() should give the os or if your looking for a particlar release you could use the platform.release()
python Syntax (Toggle Plain Text)
import platform if platform.system() == 'Windows': #Do something else: #Do something else
![]() |
Similar Threads
- C command-line I/O question (C++)
- command line question... (Windows NT / 2000 / XP)
- Help with Creating a Command Line Menu (C++)
- What is the Command-Line Argument for??? (C++)
- Command-line Arguments. (C++)
Other Threads in the Python Forum
- Previous Thread: Saving to/creating a new folder
- Next Thread: Compare Scores
Views: 240 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Python
accessdenied address ansi backend beginner changecolor class code conversion coordinates copy curves customdialog dan08 dictionary directory dynamic edit examples excel feet file float font format ftp function generator getvalue gui halp homework i/o images import info input ip java line linux list lists loop mouse mysql newb number numbers output panel parsing path port prime print program programming projects py2exe pygame pyqt python queue random rational recursion recursive schedule screensaverloopinactive scrolledtext searchingfile server ssh stamp statictext string strings sudokusolver table terminal text thread threading time tkinter tlapse tuple tutorial type ubuntu unicode url urllib urllib2 variable whileloop windows write wxpython





