Search Results

Showing results 1 to 2 of 2
Search took 0.01 seconds.
Search: Posts Made By: OutOfReach
Forum: Python Sep 13th, 2008
Replies: 2
Views: 472
Posted By OutOfReach
Here, I fixed it up for you...It errored up because you had some braces and colons ( : )missing.

print"Simple Calculator"
def menu():
print"-------------------------------------------------"...
Forum: Python Aug 22nd, 2008
Replies: 3
Views: 1,757
Posted By OutOfReach
First, import the os module:
import os

Then check if the path exists:

if os.path.exists(MY_PATH_HERE):
#Do something...
else:
#Throw an error
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC