--- a/setup.py
+++ b/setup.py
@@ -6,9 +6,13 @@
 #      python setup.py py2exe
 
 from distutils.core import setup
-import py2exe
+try:
+    import py2exe
+except:
+    pass
 import pype
 import glob
+import os
 
 nam = "PyPE-win32"
 if pype.VS[-1] == 'u':
@@ -17,10 +21,10 @@
 setup(name=nam,
       version=pype.VERSION_,
       windows=[{"script": "pype.py",
-                "icon_resources": [(1, "icons\\pype.ico")]}],
+                "icon_resources": [(1, os.path.join("icons", "pype.ico"))]}],
       data_files=[('', glob.glob('*.txt')+\
                    ['stc-styles.rc.cfg', 'pype.pyw', 'nosocket']),
-                   ('icons', glob.glob('icons\\*.*'),
+                   ('icons', glob.glob(os.path.join('icons', '*.*')),
                   )],
       options = {"py2exe": {"packages": ["encodings"]}}
 )