[Pythonmac-SIG] Path of dropped file
Chris Barker
cbarker@jps.net
Fri, 26 Nov 1999 12:16:08 -0800
HI,
This should work (it does for me)
import sys,os
print 'Path of dropped file is:',os.path.split(sys.argv[1])[0]
-Chris
--
Christopher Barker,
Ph.D.
cbarker@jps.net --- --- ---
http://www.jps.net/cbarker -----@@ -----@@ -----@@
------@@@ ------@@@ ------@@@
Water Resources Engineering ------ @ ------ @ ------ @
Coastal and Fluvial Hydrodynamics ------- --------- --------
------------------------------------------------------------------------
------------------------------------------------------------------------