Updated program so it can executed from anywhere, instead of from bin.

This commit is contained in:
Jeremiah Leary 2017-09-22 08:05:10 -05:00
parent 76845d60d7
commit 5507c3321c
1 changed files with 6 additions and 2 deletions

View File

@ -2,9 +2,13 @@
import argparse
import sys
import os
# Rules
sys.path.append('..\modules')
# Get the path to the executable
executablePath = os.path.dirname(os.path.realpath(__file__))
# Import program modules
sys.path.append(executablePath + '\..\modules')
import rule_list
import vhdlFile