How about:

~~~php
define( 'WC_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
~~~

It can be defined inside `setup` method or `plugins_loaded` action.