Home Download Buy Blog Forum Support

Problems with the listing of the current directory

Problems with the listing of the current directory

Postby durium on Wed Jan 02, 2013 10:25 pm

Hello world !

So I'm new in Sublime text plugins and I'm trying to get all the .cs and .dll files in the file directory

I have two problems :

_The first is I have no feedBack from sublime text when an error occurs (is it normal ?)

_The second is from my code (i tested it in the python idle) :
Code: Select all
import sublime, sublime_plugin
import os

class OpenCompilerCommand(sublime_plugin.TextCommand) :
   def run(self, edit) :

      command = "csc /out:Main.exe"
      dllArray      = []
      CodeFileArray = []

      pathToDir = ""
      for dir in path:
         pathToDir += dir + "\\"

don't really know what's wrong...
If you could also give a link for a beginner tutorial (I already googled it but... no good results)

Thanks !
Posts: 1
Joined: Wed Jan 02, 2013 10:13 pm

Re: Problems with the listing of the current directory

Postby FichteFoll on Sat Jan 19, 2013 5:55 pm

1. Whenever an uncaught exception occurs it is printed into the console (ctrl+´).
2. Your code does not match with what you describe you want to do. Actually, the whole code is pretty weird.

If you are new to programming, read this: http://learnpythonthehardway.org/
If you are new to Python, read this: http://docs.python.org/2/tutorial/
If you don't know how to google, click this: http://bit.ly/UXF0p0
Posts: 953
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 4 guests